Buffer
.Bytes()
⇒ Uint8Array
.Hex()
⇒ string
.Hexdump()
⇒ string
.Len()
⇒ number
.Pack(formatStr, msg)
⇒ Buffer
.String()
⇒ string
.Write(data)
⇒ Buffer
.WriteString(data)
⇒ Buffer
NewBuffer(call)
⇒ Buffer
bytes
Buffer
.Bytes()
⇒ Uint8Array
.Hex()
⇒ string
.Hexdump()
⇒ string
.Len()
⇒ number
.Pack(formatStr, msg)
⇒ Buffer
.String()
⇒ string
.Write(data)
⇒ Buffer
.WriteString(data)
⇒ Buffer
Uint8Array
Buffer
Uint8Array
- - The byte slice of the buffer.string
Buffer
string
- - The hex representation of the buffer.string
Buffer
string
- - The hexdump representation of the buffer.number
Buffer
number
- - The length of the buffer.Buffer
Buffer
Buffer
- - The buffer after packing the data.error
- The error encountered during packing.Param | Type | Description |
---|---|---|
formatStr | string | The format string to pack the data. |
msg | string | The message to pack. |
string
Buffer
string
- - The string representation of the buffer.Buffer
Buffer
Buffer
- - The buffer after appending the byte slice.
Param | Type | Description |
---|---|---|
data | Uint8Array | The byte slice to append to the buffer. |
Buffer
Buffer
Buffer
- - The buffer after appending the string.
Param | Type | Description |
---|---|---|
data | string | The string to append to the buffer. |
Buffer
bytes
Buffer
- - The new buffer created from the byte slice.
Param | Type | Description |
---|---|---|
call | Uint8Array | The byte slice to create the buffer from. |