@Internal public class BinarySection extends Object implements BinaryFormat
BinaryFormat
which describe a section of memory.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()
Gets the start offset of this binary data in the
MemorySegment s. |
MemorySegment[] |
getSegments()
Gets the underlying
MemorySegment s this binary format spans. |
int |
getSizeInBytes()
Gets the size in bytes of this binary data.
|
int |
hashCode() |
void |
pointTo(MemorySegment[] segments,
int offset,
int sizeInBytes) |
void |
pointTo(MemorySegment segment,
int offset,
int sizeInBytes) |
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()
BinaryFormat
MemorySegment
s this binary format spans.getSegments
in interface BinaryFormat
public int getOffset()
BinaryFormat
MemorySegment
s.getOffset
in interface BinaryFormat
public int getSizeInBytes()
BinaryFormat
getSizeInBytes
in interface BinaryFormat
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.