protected StateFunc Params() { NetInt.ReadInt(delta, cmd.Len1, out param1); NetInt.ReadInt(delta, cmd.Len2, out param2); return(PatchRun); }
private StateFunc Magic() { if (NetInt.ReadInt(stream) != Const.RS_SIG_MAGIC) { throw new Exception("Bad signature"); } return(Header); }
private StateFunc Header() { var signature = NetInt.ReadInt(delta); if (signature != Const.RS_DELTA_MAGIC) { throw new Exception(); } return(CommandByte); }
private StateFunc Header() { var blockLength = NetInt.ReadInt(stream); var strongLength = NetInt.ReadInt(stream); processor.Header(blockLength, strongLength); strong = new byte[strongLength]; return(Read); }
private StateFunc Read() { long weak; if (!NetInt.ReadInt(stream, 4, out weak)) { return(Completed); } stream.Read(strong, 0, strong.Length); processor.Chunk((uint)weak, new StrongSum(strong, StrongSumAlgorithm.Md4)); return(Read); }