Package com.db4o.internal
Class BlockSizeBlockConverter
- java.lang.Object
-
- com.db4o.internal.BlockSizeBlockConverter
-
- All Implemented Interfaces:
BlockConverter
public final class BlockSizeBlockConverter extends java.lang.Object implements BlockConverter
-
-
Constructor Summary
Constructors Constructor Description BlockSizeBlockConverter(int blockSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
blockAlignedBytes(int bytes)
int
blocksToBytes(int blocks)
int
bytesToBlocks(long bytes)
Slot
toBlockedLength(Slot slot)
Slot
toNonBlockedLength(Slot slot)
-
-
-
Method Detail
-
bytesToBlocks
public int bytesToBlocks(long bytes)
- Specified by:
bytesToBlocks
in interfaceBlockConverter
-
blockAlignedBytes
public int blockAlignedBytes(int bytes)
- Specified by:
blockAlignedBytes
in interfaceBlockConverter
-
blocksToBytes
public int blocksToBytes(int blocks)
- Specified by:
blocksToBytes
in interfaceBlockConverter
-
toBlockedLength
public Slot toBlockedLength(Slot slot)
- Specified by:
toBlockedLength
in interfaceBlockConverter
-
toNonBlockedLength
public Slot toNonBlockedLength(Slot slot)
- Specified by:
toNonBlockedLength
in interfaceBlockConverter
-
-