public class HeaderWriter
extends java.lang.Object
| Constructor and Description |
|---|
HeaderWriter(org.agrona.concurrent.UnsafeBuffer defaultHeader) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(org.agrona.concurrent.UnsafeBuffer termBuffer,
int offset,
int length,
int termId)
Write a header to the term buffer in
ByteOrder.LITTLE_ENDIAN format using the minimum instructions. |
public HeaderWriter(org.agrona.concurrent.UnsafeBuffer defaultHeader)
public void write(org.agrona.concurrent.UnsafeBuffer termBuffer,
int offset,
int length,
int termId)
ByteOrder.LITTLE_ENDIAN format using the minimum instructions.termBuffer - to be written to.offset - at which the header should be written.length - of the fragment including the header.termId - of the current term buffer.Copyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.