Documentation ¶
Index ¶
- type DataPortion
- func (p DataPortion) AsInts() (offset uint64, size uint16)
- func (p DataPortion) Display() string
- func (p DataPortion) End() uint64
- func (p DataPortion) ShiftBlockToBytes(b block.BlockSize) (offset uint64, size uint32)
- func (p DataPortion) ShiftToPaddingBlock(b block.BlockSize) (offset uint64)
- func (p DataPortion) SizeOnDisk(b block.BlockSize) uint32
- type EndBasedPortion
- type FreePortion
- type JournalPortion
- type Portion
- type SizeBasedPortion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataPortion ¶
func NewDataPortion ¶
func NewDataPortion(start uint64, size uint16) DataPortion
func (DataPortion) AsInts ¶
func (p DataPortion) AsInts() (offset uint64, size uint16)
func (DataPortion) Display ¶
func (p DataPortion) Display() string
func (DataPortion) End ¶
func (p DataPortion) End() uint64
func (DataPortion) ShiftBlockToBytes ¶
func (p DataPortion) ShiftBlockToBytes(b block.BlockSize) (offset uint64, size uint32)
func (DataPortion) ShiftToPaddingBlock ¶
func (p DataPortion) ShiftToPaddingBlock(b block.BlockSize) (offset uint64)
func (DataPortion) SizeOnDisk ¶
func (p DataPortion) SizeOnDisk(b block.BlockSize) uint32
type EndBasedPortion ¶
type EndBasedPortion FreePortion
type FreePortion ¶
type FreePortion uint64
FreePortion/SizeBasedPortion/EndBasedPortion is used only in BtreeDataPortionAlloc
func FromDataPortion ¶
func FromDataPortion(dataPortion DataPortion) FreePortion
func (FreePortion) CheckedExtend ¶
func (p FreePortion) CheckedExtend(size uint32) (FreePortion, bool)
func (FreePortion) End ¶
func (p FreePortion) End() address.Address
func (FreePortion) Len ¶
func (p FreePortion) Len() uint32
func (FreePortion) SlicePart ¶
func (p FreePortion) SlicePart(size uint16) (FreePortion, DataPortion)
panic
func (FreePortion) Start ¶
func (p FreePortion) Start() address.Address
type JournalPortion ¶
func NewJournalPortion ¶
func NewJournalPortion(start uint64, size uint16) JournalPortion
func (JournalPortion) SizeOnDisk ¶
func (jp JournalPortion) SizeOnDisk(b block.BlockSize) uint32
type SizeBasedPortion ¶
type SizeBasedPortion FreePortion
Click to show internal directories.
Click to hide internal directories.