Java Code Examples for net.openhft.chronicle.bytes.BytesIn#readStopBit()
The following examples show how to use
net.openhft.chronicle.bytes.BytesIn#readStopBit() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ExecutionReport.java From Chronicle-Queue-Demo with Apache License 2.0 | 6 votes |
@Override public void readMarshallable(BytesIn in) { super.readMarshallable(in); if (PREGENERATED_MARSHALLABLE) { int version = (int) in.readStopBit(); if (version == MASHALLABLE_VERSION) { symbol = in.readLong(); transactTime = in.readLong(); orderQty = in.readDouble(); price = in.readDouble(); orderID = in.readLong(); lastPx = in.readDouble(); leavesQty = in.readDouble(); cumQty = in.readDouble(); avgPx = in.readDouble(); side = (BuySell) in.readObject(BuySell.class); ordType = (OrderType) in.readObject(OrderType.class); clOrdID = (String) in.readObject(String.class); text = (String) in.readObject(String.class); } else { throw new IllegalStateException("Unknown version " + version); } } }
Example 2
Source File: NewOrderSingle.java From Chronicle-Queue-Demo with Apache License 2.0 | 6 votes |
@Override public void readMarshallable(BytesIn in) { super.readMarshallable(in); if (PREGENERATED_MARSHALLABLE) { int version = (int) in.readStopBit(); if (version == MASHALLABLE_VERSION) { symbol = in.readLong(); transactTime = in.readLong(); orderQty = in.readDouble(); price = in.readDouble(); side = (BuySell) in.readObject(BuySell.class); ordType = (OrderType) in.readObject(OrderType.class); clOrdID = (String) in.readObject(String.class); } } }
Example 3
Source File: CancelOrderRequest.java From Chronicle-Queue-Demo with Apache License 2.0 | 5 votes |
@Override public void readMarshallable(BytesIn in) { super.readMarshallable(in); if (PREGENERATED_MARSHALLABLE) { int version = (int) in.readStopBit(); if (version == MASHALLABLE_VERSION) { clOrdID = (String) in.readObject(String.class); symbol = in.readLong(); } else { throw new IllegalStateException("Unknown version " + version); } } }
Example 4
Source File: AbstractEvent.java From Chronicle-Queue-Demo with Apache License 2.0 | 5 votes |
@Override public void readMarshallable(BytesIn in) { if (PREGENERATED_MARSHALLABLE) { int version = (int) in.readStopBit(); if (version == MASHALLABLE_VERSION) { sender = in.readLong(); target = in.readLong(); sendingTime = in.readLong(); } else { throw new IllegalStateException("Unknown version " + version); } } else { super.readMarshallable(in); } }
Example 5
Source File: OrderCancelReject.java From Chronicle-Queue-Demo with Apache License 2.0 | 5 votes |
@Override public void readMarshallable(BytesIn in) { super.readMarshallable(in); if (PREGENERATED_MARSHALLABLE) { int version = (int) in.readStopBit(); if (version == MASHALLABLE_VERSION) { clOrdID = (String) in.readObject(String.class); symbol = in.readLong(); reason = (String) in.readObject(String.class); } else { throw new IllegalStateException("Unknown version " + version); } } }