The other hazel writer to check.
Move the cursor to a position.
The writer.
const writer = HazelWriter.alloc(12);
writer.goto(5);
console.log(writer.cursor); // => 5
The position to move to.
Skip a speciied number of bytes.
The writer.
const writer = HazelWriter.alloc(12);
writer.skip(3);
writer.skip(2);
writer.skip(5);
console.log(writer.cursor); // => 10
The buffer that the writer or reader is targeting.
const writer = HazelWriter.alloc(6);
console.log(writer; // => <HazelBuffer [00] 00 00 00 00 00>
The current position of the writer or reader.
const writer = HazelWriter.alloc(2);
writer.uint16(4);
console.log(writer.cursor); // => 2
The number of bytes left in the writer or reader.
const writer = HazelWriter.alloc(6);
writer.uint16(4);
console.log(writer.left); // => 4
The size of the buffer that the writer or reader is targeting.
const writer = HazelWriter.alloc(6);
console.log(writer.size); // => 6
Generated using TypeDoc
Check whether two hazel buffers contain the same information.
Returns
Whether or not the hazel writers are the same.
Example