public class MemorySliceOutput extends Object
MemorySegment
.Constructor and Description |
---|
MemorySliceOutput(int estimatedSize) |
Modifier and Type | Method and Description |
---|---|
void |
reset() |
int |
size() |
MemorySlice |
toSlice() |
void |
writeByte(int value) |
void |
writeBytes(byte[] source) |
void |
writeBytes(byte[] source,
int sourceIndex,
int length) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeVarLenInt(int value) |
void |
writeVarLenLong(long value) |
public int size()
public MemorySlice toSlice()
public void reset()
public void writeByte(int value)
public void writeInt(int value)
public void writeVarLenInt(int value)
public void writeLong(long value)
public void writeVarLenLong(long value)
public void writeBytes(byte[] source)
public void writeBytes(byte[] source, int sourceIndex, int length)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.