Copies the current buffer into the target buffer.
b1 = new Buffer(26);
b2 = new Buffer(26);
for (var i = 0 ; i < 26 ; i++) {
b1[i] = i + 65; // 65 is "A" character in UTF8
b2[i] = 42; // 42 is "*"
}
b1.copy(b2, 6, 8, 22);
b2.toString('utf8', 0, 26);
Defines the buffer where to copy the data
(default: 0) Byte offset where to start writing the data
(default: 0) Byte offset where to start reading the data
(default: buffer.length) Byte offset where to end reading the data
Fills the Buffer to which it is applied with the character you passed in value.
Returns a 64 bit double value read from the Buffer with the Big Endian format.
Returns a 64 bit double value read from the Buffer with the Little Endian format.
Returns a 32-bit float value read from the Buffer with the Big Endian format.
Returns a 32-bit float value read from the Buffer with the Little Endian format.
Returns an unsigned 16-bit integer value read from the Buffer with the Big Endian format.
Returns a signed 16-bit integer value read from the Buffer with the Little Endian format.
Returns a signed 24-bit integer value read from the Buffer with the Big Endian format.
Returns a signed 24-bit integer value read from the Buffer with the Little Endian format.
Returns a signed 32-bit integer value read from the Buffer with the Big Endian format.
Returns a signed 32-bit integer value read from the Buffer with the Little Endian format.
Returns a signed 8-bit integer value read from the Buffer to which it is applied.
Returns an unsigned 16-bit integer value read from the Buffer with the Big Endian format.
Returns an unsigned 16-bit integer value read from the Buffer with the Little Endian format.
Returns an unsigned 24-bit integer value read from the Buffer with the Big Endian format.
Returns an unsigned 24-bit integer value read from the Buffer with the Little Endian format.
Returns an unsigned 32-bit integer value read from the Buffer with the Big Endian format.
Returns an unsigned 32-bit integer value read from the Buffer with the Little Endian format.
Returns an unsigned 8-bit integer value read from the Buffer to which it is applied.
Creates a new Buffer object by referencing the contents of the bytes array of the Buffer to which it is applied, from start to end.
Returns a Blob object containing a copy of the Buffer bytes.
Converts the buffer contents into a string.
Writes the string parameter to the Buffer at the offset position and returns the number of bytes written.
Writes the 64-bit double value to the Buffer with the Big Endian format.
Writes the 64-bit double value to the Buffer with the Little Endian format.
Writes the 32-bit float value to the Buffer with the Big Endian format.
Writes the 32-bit float value to the Buffer with the Little Endian format.
Writes the 16-bit signed integer value to the Buffer with the Big Endian format.
Writes the 16-bit signed integer value to the Buffer with the Little Endian format.
Writes the 24-bit signed integer value to the Buffer with the Big Endian format.
Writes the 24-bit signed integer value to the Buffer with the Little Endian format.
Writes the 32-bit signed integer value to the Buffer with the Big Endian format.
Writes the 32-bit signed integer value to the Buffer with the Little Endian format.
Writes the 8-bit signed integer value to the Buffer to which it is applied.
Writes the 16-bit unsigned integer value to the Buffer with the Big Endian format.
Writes the 16-bit unsigned integer value to the Buffer with the Little Endian format.
Writes the 24-bit unsigned integer value to the Buffer with the Big Endian format.
Writes the 24-bit unsigned integer value to the Buffer with the Little Endian format.
Writes the 32-bit unsigned integer value to the Buffer with the Big Endian format.
Writes the 32-bit unsigned integer value to the Buffer with the Little Endian format.
Writes the 8-bit unsigned integer value to the Buffer to which it is applied.
Number of bytes of the buffer.