Read an integer out of the bytebuffer from the current position and check that it falls within the given range.
Read an integer out of the bytebuffer from the current position and check that it falls within the given range. If not, throw KafkaException.
Read a long out of the bytebuffer from the current position and check that it falls within the given range.
Read a long out of the bytebuffer from the current position and check that it falls within the given range. If not, throw KafkaException.
Read a short out of the bytebuffer from the current position and check that it falls within the given range.
Read a short out of the bytebuffer from the current position and check that it falls within the given range. If not, throw KafkaException.
Read size prefixed string where the size is stored as a 2 byte short.
Read size prefixed string where the size is stored as a 2 byte short.
The buffer to read from
Return size of a size prefixed string where the size is stored as a 2 byte short
Return size of a size prefixed string where the size is stored as a 2 byte short
The string to write
Write a size prefixed string where the size is stored as a 2 byte short
Write a size prefixed string where the size is stored as a 2 byte short
The buffer to write to
The string to write
Helper functions specific to parsing or serializing requests and responses