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

◆ SendPacketsElement() [11/13]

System.Net.Sockets.SendPacketsElement.SendPacketsElement ( byte[] buffer,
int offset,
int count,
bool endOfPacket )
inline

Definition at line 101 of file SendPacketsElement.cs.

102 {
103 if (buffer == null)
104 {
105 throw new ArgumentNullException("buffer");
106 }
107 if ((uint)offset > (uint)buffer.Length)
108 {
109 throw new ArgumentOutOfRangeException("offset");
110 }
111 if ((uint)count > (uint)(buffer.Length - offset))
112 {
113 throw new ArgumentOutOfRangeException("count");
114 }
115 Initialize(null, null, buffer, buffer.AsMemory(offset, count), offset, count, endOfPacket);
116 }
void Initialize(string filePath, FileStream fileStream, byte[] buffer, ReadOnlyMemory< byte >? memoryBuffer, long offset, int count, bool endOfPacket)

References System.buffer, System.count, System.Net.Sockets.SendPacketsElement.Initialize(), and System.offset.