MCPcopy Create free account
hub / github.com/apache/fory / WriteBytes

Method WriteBytes

csharp/src/Fory/ByteBuffer.cs:338–344  ·  view source on GitHub ↗
(ReadOnlySpan<byte> bytes)

Source from the content-addressed store, hash-verified

336 }
337
338 [MethodImpl(MethodImplOptions.AggressiveInlining)]
339 public void WriteBytes(ReadOnlySpan<byte> bytes)
340 {
341 EnsureCapacity(bytes.Length);
342 bytes.CopyTo(_storage.AsSpan(_count));
343 _count += bytes.Length;
344 }
345
346 [MethodImpl(MethodImplOptions.AggressiveInlining)]
347 public Span<byte> GetSpan(int size)

Callers 15

WriteMethod · 0.45
WriteDataMethod · 0.45
WriteTypeMetaMethod · 0.45
WriteMethod · 0.45
EncodeMethod · 0.45
WriteNameMethod · 0.45
TryWriteKnownPayloadMethod · 0.45
WriteMetaStringMethod · 0.45

Calls 1

CopyToMethod · 0.45