PackerImpl.packExt

Packs data as an extended value of type.

packer.packExt(3, bytes);

type must be a signed byte 0-127.

struct PackerImpl(Stream)
ref
packExt
(
in byte type
,
const ubyte[] data
)
if (
isOutputRange!(Stream, ubyte) &&
isOutputRange!(Stream, ubyte[])
)

Parameters

type byte

the application-defined type for the data

data ubyte[]

an array of bytes

Return Value

seld, i.e. for method chaining.

Meta