Documentation ¶
Index ¶
- Constants
- type AlignedBytes
- func (ab *AlignedBytes) Align() *AlignedBytes
- func (ab *AlignedBytes) AlignResize(newLen uint32)
- func (ab *AlignedBytes) AsBytes() []byte
- func (ab *AlignedBytes) BlockSize() BlockSize
- func (ab *AlignedBytes) Capacity() uint64
- func (ab *AlignedBytes) Len() uint32
- func (ab *AlignedBytes) Resize(newLen uint32)
- func (ab *AlignedBytes) Truncate(len uint32)
- type BlockSize
Constants ¶
View Source
const (
MIN uint16 = 512
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlignedBytes ¶
type AlignedBytes struct {
// contains filtered or unexported fields
}
func FromBytes ¶
func FromBytes(src []byte, blockSize BlockSize) *AlignedBytes
func NewAlignedBytes ¶
func NewAlignedBytes(size int, blockSize BlockSize) *AlignedBytes
func (*AlignedBytes) Align ¶
func (ab *AlignedBytes) Align() *AlignedBytes
func (*AlignedBytes) AlignResize ¶
func (ab *AlignedBytes) AlignResize(newLen uint32)
func (*AlignedBytes) AsBytes ¶
func (ab *AlignedBytes) AsBytes() []byte
func (*AlignedBytes) BlockSize ¶
func (ab *AlignedBytes) BlockSize() BlockSize
func (*AlignedBytes) Capacity ¶
func (ab *AlignedBytes) Capacity() uint64
func (*AlignedBytes) Len ¶
func (ab *AlignedBytes) Len() uint32
func (*AlignedBytes) Resize ¶
func (ab *AlignedBytes) Resize(newLen uint32)
func (*AlignedBytes) Truncate ¶
func (ab *AlignedBytes) Truncate(len uint32)
Click to show internal directories.
Click to hide internal directories.