Example #1
0
        private static Command ReadVoid(int b1, Stream stream)
        {
            int   n  = (b1 & 0b11111000) >> 3;
            Delta nd = DeltaDecoder.DecodeNd(n);

            return(Commands.Void(nd));
        }
Example #2
0
        private static Command ReadFission(int b1, Stream stream)
        {
            int   b2 = stream.StrictReadByte();
            int   n  = (b1 & 0b11111000) >> 3;
            int   m  = (b2 & 0b00000000) >> 0;
            Delta nd = DeltaDecoder.DecodeNd(n);

            return(Commands.Fission(nd, m));
        }
Example #3
0
        private static Command ReadGVoid(int b1, Stream stream)
        {
            int   n  = (b1 & 0b11111000) >> 3;
            int   dx = stream.StrictReadByte();
            int   dy = stream.StrictReadByte();
            int   dz = stream.StrictReadByte();
            Delta nd = DeltaDecoder.DecodeNd(n);
            Delta fd = DeltaDecoder.DecodeFd(dx, dy, dz);

            return(Commands.GVoid(nd, fd));
        }