Was this page helpful?
FrameReader¶
FrameReader()
Buffer forward reader of CQL binary frames
Constructor¶
Methods¶
checkOffset()
Checks that the new length to read is within the range of the buffer length. Throws a RangeError if not.
Source
read(length)
Reads any number of bytes and moves the offset. if length not provided or it's larger than the remaining bytes, reads to end.
Parameters:
| Name | Type | Description |
|---|---|---|
length |
Source
readBytes()
Reads the amount of bytes that the field has and returns them (slicing them).
Source
readInt()
Reads a BE Int and moves the offset
Source
slice()
Slices the underlying buffer
Source