Skip to main content

MakeBinaryLiteral

No overview available.

def MakeBinaryLiteral(
v: []byte
) - > *core.Literal

Constructs a new core.Literal object that encapsulates a binary scalar value. This function is used to create a literal representation of binary data within the core system, typically for serialization or data interchange.

Parameters

NameTypeDescription
v[]byteThe byte slice representing the binary data to be encapsulated within the literal.

Returns

TypeDescription
*core.LiteralA pointer to a core.Literal object containing the provided binary data as a scalar value.