Added DirectBuffer to constructor for AeronOutput
This commit is contained in:
parent
2651b791e4
commit
3513e58d30
|
@ -99,6 +99,16 @@ public class AeronOutput extends Output {
|
|||
capacity = internalBuffer.capacity();
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Output for writing to a DirectBuffer.
|
||||
*/
|
||||
public
|
||||
AeronOutput(final MutableDirectBuffer buffer) {
|
||||
internalBuffer = buffer;
|
||||
position = 0;
|
||||
capacity = internalBuffer.capacity();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public OutputStream getOutputStream () {
|
||||
|
|
Loading…
Reference in New Issue
Block a user