Added DirectBuffer to constructor for AeronOutput

This commit is contained in:
nathan 2020-08-13 12:03:38 +02:00
parent 2651b791e4
commit 3513e58d30

View File

@ -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 () {