Skip to content

socks5: refactoring readBytes to readFull

vbauerster requested to merge vbauerster/lyrebird:socks5 into main

readFull method takes byte slice as param instead of allocating one inside. Advantage that caller is free to allocate slice or use const size array like:

var addr [net.IPv4len]byte req.readFull(addr[:])

Merge request reports