Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) Buffer() *isolates.Value
- func (b *Buffer) Length(ctx context.Context) (int, error)
- func (b *Buffer) ReadUInt32BE(ctx context.Context, offset int) (uint32, error)
- func (b *Buffer) Slice(ctx context.Context, start *int, end *int) (*Buffer, error)
- func (b *Buffer) ToString(ctx context.Context, encoding *BufferEncoding) (string, error)
- func (b *Buffer) V8Construct(in isolates.FunctionArgs) (*Buffer, error)
- func (b *Buffer) V8FuncReadUInt32BE(in isolates.FunctionArgs) (*isolates.Value, error)
- func (b *Buffer) V8FuncSlice(in isolates.FunctionArgs) (*isolates.Value, error)
- func (b *Buffer) V8FuncToString(in isolates.FunctionArgs) (*isolates.Value, error)
- func (b *Buffer) V8FuncWriteUInt32BE(in isolates.FunctionArgs) (*isolates.Value, error)
- func (b *Buffer) V8GetBuffer(in isolates.GetterArgs) (*isolates.Value, error)
- func (b *Buffer) WriteUInt32BE(ctx context.Context, value uint32, offset int) (*Buffer, error)
- type BufferEncoding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) ReadUInt32BE ¶
func (*Buffer) V8Construct ¶
func (b *Buffer) V8Construct(in isolates.FunctionArgs) (*Buffer, error)
func (*Buffer) V8FuncReadUInt32BE ¶
func (*Buffer) V8FuncSlice ¶
func (*Buffer) V8FuncToString ¶
func (*Buffer) V8FuncWriteUInt32BE ¶
func (*Buffer) V8GetBuffer ¶
type BufferEncoding ¶
type BufferEncoding string
const ( Ascii BufferEncoding = "ascii" Utf8 BufferEncoding = "utf8" Hex BufferEncoding = "hex" Base64 BufferEncoding = "base64" Raw BufferEncoding = "raw" )
Click to show internal directories.
Click to hide internal directories.