renamed ByteString.WriteTo(CodedOutputStream) to WriteRawBytesTo

pull/288/head
csharptest 14 years ago committed by rogerk
parent 398a7f526c
commit ed701ad2a5
  1. 5
      src/ProtocolBuffers/ByteString.cs
  2. 4
      src/ProtocolBuffers/CodedOutputStream.cs

@ -252,7 +252,10 @@ namespace Google.ProtocolBuffers
}
}
internal void WriteTo(CodedOutputStream outputStream)
/// <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);
}

@ -360,7 +360,7 @@ namespace Google.ProtocolBuffers
{
WriteTag(fieldNumber, WireFormat.WireType.LengthDelimited);
WriteRawVarint32((uint) value.Length);
value.WriteTo(this);
value.WriteRawBytesTo(this);
}
[CLSCompliant(false)]
@ -637,7 +637,7 @@ namespace Google.ProtocolBuffers
public void WriteBytesNoTag(ByteString value)
{
WriteRawVarint32((uint) value.Length);
value.WriteTo(this);
value.WriteRawBytesTo(this);
}
[CLSCompliant(false)]

Loading…
Cancel
Save