• Home
  • Raw
  • Download

Lines Matching refs:Length

67             if (buffer.Length - state.position >= length)  in WriteFloat()
170 if (buffer.Length - state.position >= length) in WriteString()
172 if (length == value.Length) // Must be all ASCII... in WriteString()
194 … bytesUsed = Utf8Encoding.GetBytes(sourceChars, source.Length, destinationBytes, buffer.Length); in WriteString()
218 WriteLength(ref buffer, ref state, value.Length); in WriteBytes()
292 if (value < 128 && state.position < buffer.Length) in WriteRawVarint32()
299 while (state.position < buffer.Length) in WriteRawVarint32()
325 if (value < 128 && state.position < buffer.Length) in WriteRawVarint64()
332 while (state.position < buffer.Length) in WriteRawVarint64()
358 if (state.position + length > buffer.Length) in WriteRawLittleEndian32()
381 if (state.position + length > buffer.Length) in WriteRawLittleEndian64()
407 if (state.position == buffer.Length) in WriteRawByte()
436 if (buffer.Length - state.position >= value.Length) in WriteRawBytes()
439 value.CopyTo(buffer.Slice(state.position, value.Length)); in WriteRawBytes()
440 state.position += value.Length; in WriteRawBytes()
451 while (buffer.Length - state.position < value.Length - bytesWritten) in WriteRawBytes()
453 int length = buffer.Length - state.position; in WriteRawBytes()
461 int remainderLength = value.Length - bytesWritten; in WriteRawBytes()
498 if (state.position + 2 > buffer.Length) in WriteRawTag()
521 if (state.position + 3 > buffer.Length) in WriteRawTag()
546 if (state.position + 4 > buffer.Length) in WriteRawTag()
574 if (state.position + 5 > buffer.Length) in WriteRawTag()