예제 #1
0
파일: OutputBuffer.cs 프로젝트: yazici/bond
 /// <summary>
 /// Write variable encoded 64-bit unsigned integer
 /// </summary>
 public void WriteVarUInt64(ulong value)
 {
     if (position + IntegerHelper.MaxBytesVarInt64 > length)
     {
         Grow(IntegerHelper.MaxBytesVarInt64);
     }
     position = IntegerHelper.EncodeVarUInt64(buffer, value, position);
 }