# decodeBytes
function decodeBytes(data)Decodes bytes for `miniquake.protocol_text`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
src/miniquake/protocol_text.mlfunction decodeBytes(data)Decodes bytes for `miniquake.protocol_text`.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function encodeBytes(text)Encodes bytes for `miniquake.protocol_text`.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function encodedLength(text)Encode and write d length.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
function roundTripBytes(data)Return round trip bytes derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
const TEXT_ABI = "quake_latin1_cstring_v1"Defines the text abi value used by `miniquake.protocol_text`.
function truncate(text, maximum)Truncate by Quake bytes rather than MiniLang's UTF-8 storage bytes. This is the newName[15]=0 behavior needed by Host_Name_f while preserving every extended Quake byte 0x80..0xff.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to parse or process. |
maximum | dynamic | — | Largest accepted value. |