Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Write() [14/21]

virtual void System.IO.BinaryWriter.Write ( ReadOnlySpan< byte > buffer)
inlinevirtualinherited

Definition at line 318 of file BinaryWriter.cs.

319 {
320 if (GetType() == typeof(BinaryWriter))
321 {
323 return;
324 }
325 byte[] array = ArrayPool<byte>.Shared.Rent(buffer.Length);
326 try
327 {
328 buffer.CopyTo(array);
329 Write(array, 0, buffer.Length);
330 }
331 finally
332 {
334 }
335 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7
void Write(byte[] buffer, int offset, int count)

References System.array, System.buffer, System.IO.BinaryWriter.OutStream, System.Buffers.ArrayPool< T >.Shared, System.IO.Write, and System.IO.Stream.Write().