Beispiel #1
0
        public override Double Read()
        {
            UInt64 v = new MinecraftULong(Stream).Read();
            Double value;

            unsafe
            {
                value = *(double *)&v;
            }
            return(value);
        }
Beispiel #2
0
        public override void Write(UInt128 value)
        {
            var l = new MinecraftULong(Stream);

            l.WriteArray(new UInt64[] { value.hi, value.lo });
        }
Beispiel #3
0
        public override UInt128 Read()
        {
            var l = new MinecraftULong(Stream);

            return(new UInt128(l.Read(), l.Read()));
        }