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

Method GetSpan

csharp/src/Fory/ByteBuffer.cs:346–356  ·  view source on GitHub ↗
(int size)

Source from the content-addressed store, hash-verified

344 }
345
346 [MethodImpl(MethodImplOptions.AggressiveInlining)]
347 public Span<byte> GetSpan(int size)
348 {
349 if (size < 0)
350 {
351 throw new ArgumentOutOfRangeException(nameof(size));
352 }
353
354 EnsureCapacity(size);
355 return _storage.AsSpan(_count, size);
356 }
357
358 [MethodImpl(MethodImplOptions.AggressiveInlining)]
359 public void Advance(int count)

Callers 4

WriteLatin1Method · 0.80
WriteUtf8Method · 0.80
WriteUtf16Method · 0.80

Calls

no outgoing calls