public class IrEncoder extends Object implements AutoCloseable
Ir representing an SBE schema which can be written to a buffer or file.| Constructor and Description |
|---|
IrEncoder(ByteBuffer buffer,
Ir ir)
Construct an encoder for
Ir to a ByteBuffer. |
IrEncoder(String fileName,
Ir ir)
Construct an encoder for
Ir to a file. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
encode()
Encode the provided
Ir and return the length in bytes encoded. |
public IrEncoder(String fileName, Ir ir)
Ir to a file. An existing file will be overwritten.fileName - into which the Ir will be encoded.ir - to be encoded into the file.public IrEncoder(ByteBuffer buffer, Ir ir)
Ir to a ByteBuffer.buffer - into which the Ir will be encoded.ir - to be encoded into the buffer.public void close()
close in interface AutoCloseableCopyright © 2013-2024 Real Logic Limited. All Rights Reserved.