package
0.2.4
Repository: https://github.com/hack-pad/hackpadfs.git
Documentation: pkg.go.dev

# Functions

Grow attempts to call an optimized blob.Grow(), falls back to copying into Bytes and running Bytes.Grow().
NewBytes returns a Blob that wraps the given byte slice.
NewBytesLength returns a new Bytes with the given length of zero-byte data.
Read reads 'src' into a new Blob up to length bytes.
ReadAt reads 'src' into a new Blob up to length bytes starting at 'srcOffset'.
Set attempts to call an optimized blob.Set(), falls back to copying into Bytes and running Bytes.Set().
Slice attempts to call an optimized blob.Slice(), falls back to copying into Bytes and running Bytes.Slice().
Truncate attempts to call an optimized blob.Truncate(), falls back to copying into Bytes and running Bytes.Truncate().
View attempts to call an optimized blob.View(), falls back to copying into Bytes and running Bytes.View().
Write writes 'src' into 'dest'.
WriteAt writes 'src' into 'dest' starting at 'destOffset'.

# Structs

Bytes is a Blob that wraps a byte slice.

# Interfaces

Blob is a binary blob of data that can support platform-optimized mutations for better performance.
GrowBlob is a Blob that can increase it's size by allocating offset bytes at the end.
Reader reads a Blob of up to 'length' bytes.
ReaderAt reads a Blob of up to 'length' bytes starting from this reader's 'srcOffset'.
SetBlob is a Blob that can copy 'src' into itself starting at the given offset into this Blob.
SliceBlob is a Blob that can return a copy of the data between start and end.
TruncateBlob is a Blob that can cut off bytes from the end until it is 'size' bytes long.
ViewBlob is a Blob that can return a view into the same underlying data.
Writer writes 'src' to this writer.
WriterAt writes 'src' to this writer starting at 'destOffset'.