private static Command ReadSMove(int b1, Stream stream) { int b2 = stream.StrictReadByte(); int a = (b1 & 0b00110000) >> 4; int i = (b2 & 0b00011111) >> 0; Delta lld = DeltaDecoder.DecodeLld(a, i); return(Commands.SMove(lld)); }
internal override Command Decode(int prefix, Func <int> nextByte) { int suffix = nextByte(); int a = (prefix & 0b00110000) >> 4; int i = (suffix & 0b00011111) >> 0; Delta lld = DeltaDecoder.DecodeLld(a, i); return(Commands.SMove(lld)); }