Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Net.ArrayBuffer Struct Reference

Public Member Functions

 ArrayBuffer (int initialSize, bool usePool=false)
 
void Dispose ()
 
Memory< byte > AvailableMemorySliced (int length)
 
void Discard (int byteCount)
 
void Commit (int byteCount)
 
void EnsureAvailableSpace (int byteCount)
 
void Grow ()
 
 ArrayBuffer (int initialSize, bool usePool=false)
 
void Dispose ()
 
void Discard (int byteCount)
 
void Commit (int byteCount)
 
void EnsureAvailableSpace (int byteCount)
 

Properties

int ActiveLength [get]
 
Span< byte > ActiveSpan [get]
 
Memory< byte > ActiveMemory [get]
 
int AvailableLength [get]
 
Span< byte > AvailableSpan [get]
 
Memory< byte > AvailableMemory [get]
 
int Capacity [get]
 
ReadOnlySpan< byte > ActiveReadOnlySpan [get]
 

Private Attributes

readonly bool _usePool
 
byte[] _bytes
 
int _activeStart
 
int _availableStart
 

Detailed Description

Definition at line 7 of file ArrayBuffer.cs.


The documentation for this struct was generated from the following files: