What does the property named "offset" (under class "Buffer") meaning?

11 views
Skip to first unread message

Tom Fan

unread,
Aug 25, 2016, 12:10:47 AM8/25/16
to nodejs
What does the property named "offset" (under class "Buffer") meaning?

Ben Noordhuis

unread,
Aug 26, 2016, 8:37:43 AM8/26/16
to nod...@googlegroups.com
On Tue, Aug 23, 2016 at 8:50 AM, Tom Fan <hello...@gmail.com> wrote:
> What does the property named "offset" (under class "Buffer") meaning?

It's the offset into the parent buffer: buf.slice(1,1).offset ===
buf.offset + 1.
Reply all
Reply to author
Forward
0 new messages