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
| Name | Type | Description |
|---|---|---|
| v | []byte | The byte slice to be encapsulated as a binary literal. This is the raw binary data that the core.Literal will represent. |
Returns
| Type | Description |
|---|---|
*core.Literal | A pointer to a core.Literal object containing the provided binary data as a scalar value with a MESSAGEPACK tag. |