internal override int Encode(byte[] dst, int dstIndex) { int start = HeaderStart = dstIndex; dstIndex += WriteHeaderWireFormat(dst, dstIndex); dstIndex += WriteAndXWireFormat(dst, dstIndex); Length = dstIndex - start; if (Digest != null) { Digest.Sign(dst, HeaderStart, Length, this, Response); } return(Length); }