KafkaBytesReader class
Provides convenience methods read Kafka specific data types from a stream of bytes.
Constructors
-
KafkaBytesReader.fromBytes(List<
int> data) - Creates reader from a list of bytes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEOF → bool
-
Whether this bytes buffer has been fully read.
no setter
- isNotEOF → bool
-
Whether there are still unread bytes left in this buffer.
no setter
- length → int
-
Size of this byte buffer.
no setter
- offset → int
-
Current position in this buffer.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readArray(
KafkaType itemType, [dynamic objectReadHandler(KafkaBytesReader reader)?]) → List -
readBytes(
) → List< int> ? -
readInt16(
) → int - Reads 16-bit integer from the current position of this buffer.
-
readInt32(
) → int - Reads 32-bit integer from the current position of this buffer.
-
readInt64(
) → int - Reads 64-bit integer from the current position of this buffer.
-
readInt8(
) → int -
readRaw(
int length) → List< int> - Reads raw bytes from this buffer.
-
readString(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited