public final class MessageTypeEncoding
extends java.lang.Object
| Constructor and Description |
|---|
MessageTypeEncoding() |
| Modifier and Type | Method and Description |
|---|---|
static org.agrona.collections.LongHashSet |
packAllMessageTypes(java.util.Set<java.lang.String> messageTypes) |
static long |
packMessageType(byte[] messageType,
int offset,
int length)
Creates a packed message type from a byte[] and length.
|
static long |
packMessageType(char[] messageType,
int length)
Creates a packed message type from a char[] and length.
|
static long |
packMessageType(java.lang.String messageType)
Creates a packed message type from a string.
|
static int |
unpackMessageType(long packedMessageType,
byte[] dest)
Unpacks a packed message type into a byte array so that it can be encoded into different formats.
|
public static long packMessageType(java.lang.String messageType)
messageType - message type as ascii string.java.lang.IllegalArgumentException - if messageType parameter is too long.public static org.agrona.collections.LongHashSet packAllMessageTypes(java.util.Set<java.lang.String> messageTypes)
public static long packMessageType(char[] messageType,
int length)
messageType - message type as ascii char[].length - the number of characters within messageType to use.java.lang.IllegalArgumentException - if messageType parameter is too long.public static long packMessageType(byte[] messageType,
int offset,
int length)
messageType - message type as ascii byte[].offset - the offset within the messagetype to start lookinglength - the number of characters within messageType to use.java.lang.IllegalArgumentException - if messageType parameter is too long.public static int unpackMessageType(long packedMessageType,
byte[] dest)
packMessageType() methods can support for
unusual dictionaries. The unpacked value is a byte[] that contains the ascii encoded String of the message
type.packedMessageType - the FIX message type in packed format.dest - a destination byte array where the unpacked value is put, should be at least two bytes long.java.lang.ArrayIndexOutOfBoundsException - if dest is too short.Copyright © 2015-2022 Real Logic Limited. All Rights Reserved.