UnicodeBom.decode

Convert the provided content. The content is inspected for a BOM signature, which is stripped. An exception is thrown if a signature is present when, according to the encoding type, it should not be. Conversely, An exception is thrown if there is no known signature where the current encoding expects one to be present.

Where 'ate' is provided, it will be set to the number of elements consumed from the input and the decoder operates in streaming-mode. That is: 'dst' should be supplied since it is not resized or allocated.

class UnicodeBom(T)
final
T[]
decode
(
void[] content
,
T[] dst = null
,
size_t* ate = null
)

Meta