| Package | Description |
|---|---|
| com.neurotec.io | |
| com.neurotec.lang |
| Modifier and Type | Method and Description |
|---|---|
static NBuffer |
NBuffer.fromArray(byte[] array) |
static NBuffer |
NBuffer.fromByteBuffer(ByteBuffer buffer)
Creates a new NBuffer from another buffer.
|
NBuffer |
NMemoryStream.getBuffer()
Gets the byte buffer of the current memory stream.
|
static NBuffer |
NBuffer.getEmpty()
Gets an empty buffer.
|
static NBuffer |
NFile.readAllBytes(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
NBuffer.copy(NBuffer srcBuffer,
long srcOffset,
NBuffer dstBuffer,
long dstOffset,
long size)
Copies data into current NBuffer from a different NBuffer with specified offsets into both buffers and specified size.
|
void |
NBuffer.copyTo(NBuffer dstBuffer,
long dstOffset)
Reads the bytes from the current NBuffer and writes them to another stream, using a specified offset.
|
int |
NStream.read(NBuffer dst) |
int |
NStream.write(NBuffer src) |
static void |
NFile.writeAllBytes(String path,
NBuffer buffer) |
| Constructor and Description |
|---|
NBuffer(NBuffer srcBuffer,
long offset,
long size)
Initializes a new instance of the NBuffer class.
|
NMemoryStream(NBuffer buffer)
Initializes a new instance of NMemoryStream class.
|
NMemoryStream(NBuffer buffer,
boolean canWrite)
Initializes a new instance of NMemoryStream class.
|
NMemoryStream(NBuffer buffer,
NFileAccess access,
boolean bufferExposable)
Initializes a new instance of NMemoryStream class.
|
| Modifier and Type | Method and Description |
|---|---|
NBuffer |
NObject.save()
Saves the current object in memory buffer.
|
NBuffer |
NObject.save(int flags)
Saves the current object in memory buffer.
|
static <E extends NObject> |
NObject.saveMany(E[] objects)
Saves a NObject array in a memory buffer.
|
static <E extends NObject> |
NObject.saveMany(E[] objects,
int flags)
Saves a NObject array in a memory buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
NObject.save(NBuffer buffer)
Saves an objects to a memory location with specified size.
|
int |
NObject.save(NBuffer buffer,
int flags)
Saves an objects to a memory location with specified size.
|
static <E extends NObject> |
NObject.saveMany(E[] objects,
NBuffer buffer)
Saves a NObject array in a specified memory buffer.
|
static <E extends NObject> |
NObject.saveMany(E[] objects,
NBuffer buffer,
int flags)
Saves a NObject array in a specified memory buffer.
|
Copyright © 2016 Neurotechnology. All rights reserved.