Documentation ¶
Rendered for js/wasm
Index ¶
- type Blob
- func (b *Blob) Bytes() []byte
- func (b *Blob) Grow(off int64) error
- func (b *Blob) JSValue() js.Value
- func (b *Blob) Len() int
- func (b *Blob) Set(src blob.Blob, destStart int64) (n int, err error)
- func (b *Blob) Slice(start, end int64) (blob.Blob, error)
- func (b *Blob) Truncate(size int64) error
- func (b *Blob) View(start, end int64) (blob.Blob, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
// contains filtered or unexported fields
}
Blob is a blob.Blob for JS environments, optimized for reading and writing to a Uint8Array without en/decoding back and forth.
func FromBlob ¶
FromBlob creates a Blob from the given blob.Blob, either wrapping the JS value or copying the bytes if incompatible.
Click to show internal directories.
Click to hide internal directories.