Beispiel #1
0
 public override void Read(BinaryStreamBase stream)
 {
     CollectedTime = stream.ReadUInt64();
     TableId       = stream.ReadInt32();
     DataLength    = stream.ReadUInt8();
     stream.Read(Data, 0, Data.Length);
 }
Beispiel #2
0
 public unsafe override void Decode(BinaryStreamBase stream, AmiKey prevKey, AmiValue prevValue, AmiKey key, AmiValue value, out bool isEndOfStream)
 {
     isEndOfStream       = false;
     key.Timestamp       = stream.ReadUInt64();
     key.PointID         = stream.ReadUInt64();
     value.CollectedTime = stream.ReadUInt64();
     value.TableId       = stream.ReadInt32();
     value.DataLength    = stream.ReadUInt8();
     stream.Read(value.Data, 0, value.DataLength);
 }