public void ReadWriteInt16()
        {
            IValueWriter writer = GetWriter();

            writer.WriteInt16(Int16.MaxValue);
            writer.WriteInt16(0);
            writer.WriteInt16(Int16.MinValue);
            writer.Flush();

            IValueReader reader = GetReader(writer);

            Assert.AreEqual(Int16.MaxValue, reader.ReadInt16());
            Assert.AreEqual(0, reader.ReadInt16());
            Assert.AreEqual(Int16.MinValue, reader.ReadInt16());
        }
Exemplo n.º 2
0
 public override void Deserialize(ISerializationContext context, IValueReader reader)
 {
     base.Deserialize(context, reader);
     Bitrate    = reader.ReadInt32();
     FrameSize  = reader.ReadInt16();
     Complexity = reader.ReadByte();
 }
Exemplo n.º 3
0
 public short ReadValue(IValueReader valueReader)
 {
     return(valueReader.ReadInt16());
 }