public class BinarySection extends Object implements BinaryFormat
Modifier and Type | Field and Description |
---|---|
protected int |
offset |
protected MemorySegment[] |
segments |
protected int |
sizeInBytes |
HIGHEST_FIRST_BIT, HIGHEST_SECOND_TO_EIGHTH_BIT, MAX_FIX_PART_DATA_SIZE
Constructor and Description |
---|
BinarySection() |
BinarySection(MemorySegment[] segments,
int offset,
int sizeInBytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getOffset() |
MemorySegment[] |
getSegments() |
int |
getSizeInBytes() |
int |
hashCode() |
void |
pointTo(MemorySegment[] segments,
int offset,
int sizeInBytes) |
void |
pointTo(MemorySegment segment,
int offset,
int sizeInBytes) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
readBinaryFieldFromSegments, readBinaryStringFieldFromSegments
protected MemorySegment[] segments
protected int offset
protected int sizeInBytes
public BinarySection()
public BinarySection(MemorySegment[] segments, int offset, int sizeInBytes)
public final void pointTo(MemorySegment segment, int offset, int sizeInBytes)
public void pointTo(MemorySegment[] segments, int offset, int sizeInBytes)
public MemorySegment[] getSegments()
getSegments
in interface BinaryFormat
public int getOffset()
getOffset
in interface BinaryFormat
public int getSizeInBytes()
getSizeInBytes
in interface BinaryFormat
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.