Buffer.newSubbuffer

Creates a new #SoupBuffer containing @length bytes "copied" from @parent starting at @offset. (Normally this will not actually copy any data, but will instead simply reference the same data as @parent does.)

class Buffer
newSubbuffer
(
size_t offset
,
size_t length
)

Parameters

offset size_t

offset within @parent to start at

length size_t

number of bytes to copy from @parent

Return Value

Type: Buffer

the new #SoupBuffer.

Meta