Skip to main content

MakeBinaryLiteral

No overview available.

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

Constructs a new core.Literal object representing a binary scalar value. This function is used to encapsulate a byte slice into a literal structure, typically for serialization or data representation within a system that uses core.Literal for various data types.

Parameters

NameTypeDescription
v[]byteThe byte slice to be encapsulated as a binary literal. This is the raw binary data that the core.Literal will represent.

Returns

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