public static ComputeRawMessageSetExtensionSize ( int fieldNumber, ByteString value ) : int | ||
fieldNumber | int | |
value | ByteString | |
Результат | int |
/// <summary> /// Get the number of bytes required to encode this field, incuding field number, /// using the MessageSet wire format. /// </summary> public int GetSerializedSizeAsMessageSetExtension(int fieldNumber) { int result = 0; foreach (ByteString value in lengthDelimitedList) { result += CodedOutputStream.ComputeRawMessageSetExtensionSize(fieldNumber, value); } return(result); }