public class MemorySliceOutput extends Object
MemorySegment.| 构造器和说明 |
|---|
MemorySliceOutput(int estimatedSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.