public interface ResizableMemoryStructure extends MemoryStructure
MemoryStructure
represents a structure that is
expected to have resizable variable data.Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getVariableData()
Returns the portion of the data after the defined structure (e.g.
|
void |
resize(int size)
Resizes the backing memory to the provided
size . |
void |
resizeVariableData(int size)
Resizes the variable portion of this record to the provided
size . |
getData
void resize(int size)
size
.size
- the new size in bytesByteBuffer getVariableData()
CDTEXT
record).
This byte buffer starts at the beginning of the variable data and has a length equal to the variable data length.
ByteBuffer
representing the variable-length data of the recordvoid resizeVariableData(int size)
size
.size
- the new size in bytesCopyright © 2019–2021 HCL. All rights reserved.