| Package | Description |
|---|---|
| net.smacke.jaydio.align | |
| net.smacke.jaydio.buffer | |
| net.smacke.jaydio.channel |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteChannelAligner<T extends JaydioByteBuffer>
Abstract class which handles reading and writing from/to an underlying byte channel in appropriate
increments and and at appropriate boundaries of the channel.
|
| Constructor and Description |
|---|
MockByteChannelAligner(DirectIoLib lib,
BufferedChannel<JaydioByteBuffer> channel,
JaydioByteBuffer buffer) |
| Constructor and Description |
|---|
MockByteChannelAligner(DirectIoLib lib,
BufferedChannel<JaydioByteBuffer> channel,
JaydioByteBuffer buffer) |
| Modifier and Type | Class and Description |
|---|---|
class |
AlignedDirectByteBuffer
Implementation of
Buffer which uses JNA to get access to properly aligned
native memory, for use with the O_DIRECT flag. |
class |
JavaHeapByteBuffer
A mock implementation of
JaydioByteBuffer, used for testing. |
| Modifier and Type | Method and Description |
|---|---|
JaydioByteBuffer |
JaydioByteBuffer.copy() |
JaydioByteBuffer |
JaydioByteBuffer.get(byte[] dst) |
JaydioByteBuffer |
JaydioByteBuffer.get(byte[] dst,
int offset,
int length) |
JaydioByteBuffer |
JaydioByteBuffer.get(ByteBuffer dst)
Reads min(this.remaining(),dst.remaining()) bytes from this buffer into dst.
|
JaydioByteBuffer |
JaydioByteBuffer.put(byte b) |
JaydioByteBuffer |
JaydioByteBuffer.put(byte[] src) |
JaydioByteBuffer |
JaydioByteBuffer.put(byte[] src,
int offset,
int length) |
JaydioByteBuffer |
JaydioByteBuffer.put(ByteBuffer src)
Writes min(this.remaining(),src.remaining()) bytes into this buffer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
MockByteChannel.read(JaydioByteBuffer dst,
long position) |
int |
MockByteChannel.write(JaydioByteBuffer src,
long position) |
Copyright © 2014. All Rights Reserved.