예제 #1
0
            public void Wrap(
                SnapshotRecordingsEncoder parentMessage, IMutableDirectBuffer buffer, int count)
            {
                if (count < 0 || count > 65534)
                {
                    throw new ArgumentException("count outside allowed range: count=" + count);
                }

                this._parentMessage = parentMessage;
                this._buffer        = buffer;
                _dimensions.Wrap(buffer, parentMessage.Limit());
                _dimensions.BlockLength((ushort)44);
                _dimensions.NumInGroup((ushort)count);
                _index      = -1;
                this._count = count;
                parentMessage.Limit(parentMessage.Limit() + HEADER_SIZE);
            }
예제 #2
0
 public SnapshotRecordingsEncoder()
 {
     _parentMessage = this;
 }