protected internal virtual void WrapForEncode(IClientProtocolBuffer buffer, int offset)
 {
     EnsureHeaderSize(offset, buffer.Capacity());
     Wrap(buffer, offset);
     SetDataOffset(HeaderSize);
     SetFrameLength(HeaderSize);
     Index(GetDataOffset());
     SetPartitionId(-1);
 }
 protected internal virtual void WrapForEncode(IClientProtocolBuffer buffer, int offset)
 {
     EnsureHeaderSize(offset, buffer.Capacity());
     Wrap(buffer, offset);
     SetDataOffset(HeaderSize);
     SetFrameLength(HeaderSize);
     Index(GetDataOffset());
     SetPartitionId(-1);
 }
 protected internal virtual void WrapForDecode(IClientProtocolBuffer buffer, int offset)
 {
     EnsureHeaderSize(offset, buffer.Capacity());
     Wrap(buffer, offset);
     Index(GetDataOffset());
 }
 protected internal virtual void WrapForDecode(IClientProtocolBuffer buffer, int offset)
 {
     EnsureHeaderSize(offset, buffer.Capacity());
     Wrap(buffer, offset);
     Index(GetDataOffset());
 }