-
public class MemoryChunkUtil
-
-
Field Summary
Fields Modifier and Type Field Description public final static MemoryChunkUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final static IntegeradjustByteCount(Integer offset, Integer count, Integer memorySize)Computes number of bytes that can be safely read/written starting at given offset, but no more than count. final static UnitcheckBounds(Integer offset, Integer otherLength, Integer otherOffset, Integer count, Integer memorySize)Check that copy/read/write operation won't access memory it should not -
-
Method Detail
-
adjustByteCount
final static Integer adjustByteCount(Integer offset, Integer count, Integer memorySize)
Computes number of bytes that can be safely read/written starting at given offset, but no more than count.
-
-
-
-