UnpackUInt16() private méthode

private UnpackUInt16 ( Stream source ) : UInt16
source Stream
Résultat System.UInt16
Exemple #1
0
        private static void TestUInt16(UInt16 value)
        {
            var output = new MemoryStream();

            Packer.Create(output).Pack(value);
            Assert.AreEqual(value, Unpacking.UnpackUInt16(new MemoryStream(output.ToArray())));
            Assert.AreEqual(value, Unpacking.UnpackUInt16(output.ToArray()).Value);
        }