public class MemoryNativeBuffer extends Object implements NativeBuffer
| Modifier | Constructor and Description |
|---|---|
protected |
MemoryNativeBuffer(NativeMemory memory,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
long |
capacity() |
long |
getOffset() |
long |
getPosition() |
long |
getStartOffset() |
NativeMemory |
memory() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
String |
readZeroTerminatedUTF8() |
long |
remaining() |
boolean |
setOffset(long offset) |
boolean |
setPosition(long position) |
int |
skipBytes(int n) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(byte value,
long len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String str) |
void |
writeZeroTerminatedUTF8(String str) |
protected MemoryNativeBuffer(NativeMemory memory, long offset)
public void readFully(byte[] b)
readFully in interface NativeBufferreadFully in interface DataInputpublic void readFully(byte[] b,
int off,
int len)
readFully in interface NativeBufferreadFully in interface DataInputpublic int skipBytes(int n)
skipBytes in interface NativeBufferskipBytes in interface DataInputpublic boolean readBoolean()
readBoolean in interface NativeBufferreadBoolean in interface DataInputpublic byte readByte()
readByte in interface NativeBufferreadByte in interface DataInputpublic int readUnsignedByte()
readUnsignedByte in interface NativeBufferreadUnsignedByte in interface DataInputpublic short readShort()
readShort in interface NativeBufferreadShort in interface DataInputpublic int readUnsignedShort()
readUnsignedShort in interface NativeBufferreadUnsignedShort in interface DataInputpublic char readChar()
readChar in interface NativeBufferreadChar in interface DataInputpublic int readInt()
readInt in interface NativeBufferreadInt in interface DataInputpublic long readLong()
readLong in interface NativeBufferreadLong in interface DataInputpublic float readFloat()
readFloat in interface NativeBufferreadFloat in interface DataInputpublic double readDouble()
readDouble in interface NativeBufferreadDouble in interface DataInputpublic String readLine()
readLine in interface NativeBufferreadLine in interface DataInputpublic String readUTF()
readUTF in interface NativeBufferreadUTF in interface DataInputpublic String readZeroTerminatedUTF8()
readZeroTerminatedUTF8 in interface NativeBufferpublic void writeZeroTerminatedUTF8(String str)
writeZeroTerminatedUTF8 in interface NativeBufferpublic void write(byte value,
long len)
write in interface NativeBufferpublic NativeMemory memory()
memory in interface NativeBufferpublic long getOffset()
getOffset in interface NativeBufferpublic long getPosition()
getPosition in interface NativeBufferpublic long remaining()
remaining in interface NativeBufferpublic long capacity()
capacity in interface NativeBufferpublic long getStartOffset()
getStartOffset in interface NativeBufferpublic boolean setPosition(long position)
setPosition in interface NativeBufferpublic boolean setOffset(long offset)
setOffset in interface NativeBufferpublic void write(int b)
write in interface NativeBufferwrite in interface DataOutputpublic void write(byte[] b)
write in interface NativeBufferwrite in interface DataOutputpublic void write(byte[] b,
int off,
int len)
write in interface NativeBufferwrite in interface DataOutputpublic void writeBoolean(boolean v)
writeBoolean in interface NativeBufferwriteBoolean in interface DataOutputpublic void writeByte(int v)
writeByte in interface NativeBufferwriteByte in interface DataOutputpublic void writeShort(int v)
writeShort in interface NativeBufferwriteShort in interface DataOutputpublic void writeChar(int v)
writeChar in interface NativeBufferwriteChar in interface DataOutputpublic void writeInt(int v)
writeInt in interface NativeBufferwriteInt in interface DataOutputpublic void writeLong(long v)
writeLong in interface NativeBufferwriteLong in interface DataOutputpublic void writeFloat(float v)
writeFloat in interface NativeBufferwriteFloat in interface DataOutputpublic void writeDouble(double v)
writeDouble in interface NativeBufferwriteDouble in interface DataOutputpublic void writeBytes(String s)
writeBytes in interface NativeBufferwriteBytes in interface DataOutputpublic void writeChars(String s)
writeChars in interface NativeBufferwriteChars in interface DataOutputpublic void writeUTF(String str)
writeUTF in interface NativeBufferwriteUTF in interface DataOutputCopyright © 2023. All rights reserved.