private static Command ReadVoid(int b1, Stream stream) { int n = (b1 & 0b11111000) >> 3; Delta nd = DeltaDecoder.DecodeNd(n); return(Commands.Void(nd)); }
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)); }
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)); }