mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2025-02-15 11:21:20 +01:00
#3767: Remove explicit direct buffer check
This commit is contained in:
parent
7340f1a035
commit
15bd33b25b
@ -37,9 +37,6 @@ public class NativeCipher implements BungeeCipher
|
|||||||
@Override
|
@Override
|
||||||
public void cipher(ByteBuf in, ByteBuf out) throws GeneralSecurityException
|
public void cipher(ByteBuf in, ByteBuf out) throws GeneralSecurityException
|
||||||
{
|
{
|
||||||
// Smoke tests
|
|
||||||
in.memoryAddress();
|
|
||||||
out.memoryAddress();
|
|
||||||
Preconditions.checkState( ctx != 0, "Invalid pointer to AES key!" );
|
Preconditions.checkState( ctx != 0, "Invalid pointer to AES key!" );
|
||||||
|
|
||||||
// Store how many bytes we can cipher
|
// Store how many bytes we can cipher
|
||||||
|
@ -48,9 +48,6 @@ public class NativeZlib implements BungeeZlib
|
|||||||
@Override
|
@Override
|
||||||
public void process(ByteBuf in, ByteBuf out) throws DataFormatException
|
public void process(ByteBuf in, ByteBuf out) throws DataFormatException
|
||||||
{
|
{
|
||||||
// Smoke tests
|
|
||||||
in.memoryAddress();
|
|
||||||
out.memoryAddress();
|
|
||||||
Preconditions.checkState( ctx != 0, "Invalid pointer to compress!" );
|
Preconditions.checkState( ctx != 0, "Invalid pointer to compress!" );
|
||||||
|
|
||||||
while ( !nativeCompress.finished && ( compress || in.isReadable() ) )
|
while ( !nativeCompress.finished && ( compress || in.isReadable() ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user