//UtpWrite writes data func (s *UtpSocket) UtpWrite(buf []byte) int64 { size := C.utp_write(s.s, (unsafe.Pointer)(&buf[0]), (C.size_t)(len(buf))) return (int64)(size) }
func (s *UTPSocket) Write(buf []byte, len int) int { ptr := unsafe.Pointer(&buf[0]) return int(C.utp_write(s.raw, ptr, C.size_t(len))) }