socks5: refactoring readBytes to readFull
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[:])
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[:])