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

Method SetBytes

csharp/src/Fory/ByteBuffer.cs:380–389  ·  view source on GitHub ↗
(int index, ReadOnlySpan<byte> bytes)

Source from the content-addressed store, hash-verified

378 }
379
380 [MethodImpl(MethodImplOptions.AggressiveInlining)]
381 public void SetBytes(int index, ReadOnlySpan<byte> bytes)
382 {
383 if (index < 0 || index + bytes.Length > _count)
384 {
385 throw new ArgumentOutOfRangeException(nameof(index));
386 }
387
388 bytes.CopyTo(_storage.AsSpan(index));
389 }
390
391 public byte[] ToArray()
392 {

Callers 2

readDecimalPartsFunction · 0.80

Calls 1

CopyToMethod · 0.45