/// <summary> /// Used internally by CodedOutputStream to avoid creating a copy for the write /// </summary> internal void WriteRawBytesTo(CodedOutputStream outputStream) { outputStream.WriteRawBytes(bytes, 0, bytes.Length); }
public static void Initialize(CodedOutputStream codedOutputStream, out WriteBufferHelper instance) { instance.bufferWriter = null; instance.codedOutputStream = codedOutputStream; }
internal void CopyStateTo(CodedOutputStream output) { output.InternalState = state; }
internal void LoadStateFrom(CodedOutputStream output) { state = output.InternalState; }
internal static int CalculateSize <T>(T value, FieldCodec <T> codec) { int fieldLength = codec.CalculateSizeWithTag(value); return(CodedOutputStream.ComputeLengthSize(fieldLength) + fieldLength); }