C#C
C#3y ago
Slycex

✅ Dynamic Buffer

Hello !

I want create a dynamic buffer and i didnt know how to proced.

I want Receive bytes of my client, and stock only the bytes receive.

Actualy use :
byte buffer = new byte[1024]
var received = await handler.ReceiveAsync(buffer, SocketFlags.None)

problem is i use lot of memory unnecessarily if receive little packet

Thanks for your help,
Slycex.

PS : sorry for my english :S
Was this page helpful?