You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several Windows Sockets functions/structures unnecessary require null-terminated buffers (as if it were C strings). These are related to sending/receiving data via network and can work with any buffers, not just null-terminated.
Several Windows Sockets functions/structures unnecessary require null-terminated buffers (as if it were C strings). These are related to sending/receiving data via network and can work with any buffers, not just null-terminated.
send()/sendto(): C type ofbufparameterconst char *gets translated to?[*:0]const u8, but it does not represent a C-string, should be just?[*]const u8.https://github.com/marlersoft/zigwin32/blob/714694dc2e2551ff1dae9ac052b9e88fb7fbabba/win32/networking/win_sock.zig#L5835-L5841
https://github.com/marlersoft/zigwin32/blob/714694dc2e2551ff1dae9ac052b9e88fb7fbabba/win32/networking/win_sock.zig#L5844-L5853
recv()/recvfrom(): C type ofbufparameterchar *gets translated to?PSTR(which means?[*:0]u8) instead of just?[*]u8.https://github.com/marlersoft/zigwin32/blob/714694dc2e2551ff1dae9ac052b9e88fb7fbabba/win32/networking/win_sock.zig#L5663-L5669
https://github.com/marlersoft/zigwin32/blob/714694dc2e2551ff1dae9ac052b9e88fb7fbabba/win32/networking/win_sock.zig#L5672-L5681
buffield of WSABUF structure is a pointer to a buffer which does not have to be null-terminated. Current definition is again?PSTRinstead of?[*]u8:https://github.com/marlersoft/zigwin32/blob/714694dc2e2551ff1dae9ac052b9e88fb7fbabba/win32/networking/win_sock.zig#L4854-L4857