public class ErrorPacket extends Packet
CODE_MASK, encodedBody, encodingBuffer, length
Modifier and Type | Method and Description |
---|---|
static ErrorPacket |
create() |
void |
decodeBody(ByteBuffer buffer)
Decodes the body of this package from a byte buffer
positioned at the first byte of the package.
|
void |
encodeBody(ByteBuffer buffer)
Encodes the body of this package onto the given buffer at the current position.
|
int |
getCode()
Returns the code of this package
|
int |
getErrorCode() |
String |
toString() |
decode, encode, getChannel, hasChannelId, patchChannelId, setChannel
allocateAndEncode, codeDecodedHook, decodeAndDecompressBody, encode, encodeAndCompressBody, getLength, getTimestamp, grantEncodingBuffer, grantEncodingBuffer, isEncoded, setCompressionLimit, setCompressionType, setEncodedBody, setTimestamp
public static ErrorPacket create()
public int getCode()
BasicPacket
getCode
in class BasicPacket
public void decodeBody(ByteBuffer buffer)
BasicPacket
decodeBody
in class BasicPacket
public int getErrorCode()
public void encodeBody(ByteBuffer buffer)
BasicPacket
encodeBody
in class BasicPacket
Copyright © 2018. All rights reserved.