I have a node.js buffer declared in this way;
var buffer_bin;
buffer_bin = new Buffer("ABCDEF", "hex");
Contents of buffer_bin is "ab cd ef" in binary bytes.
I want to remove the first byte ab from buffer_bin such that the contents of buffer_bin becomes "cd ef".
Use the slice method in Buffer object.
var new_buffer_bin = buffer_bin.slice(1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With