1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: re-implement variadics using arrays & implement array decomposition to varg (#7689)

This commit is contained in:
joe-conigliaro
2020-12-30 02:14:08 +11:00
committed by GitHub
parent 6cf3b96a37
commit 02965e753e
20 changed files with 210 additions and 183 deletions

View File

@@ -180,13 +180,13 @@ pub fn (mut s SSLConn) socket_read_into_ptr(buf_ptr byteptr, len int) ?int {
return res
}
pub fn (mut s SSLConn) read_into(mut buffer []Byte) ?int {
pub fn (mut s SSLConn) read_into(mut buffer []byte) ?int {
res := s.socket_read_into_ptr(byteptr(buffer.data), buffer.len)?
return res
}
// write number of bytes to SSL connection
pub fn (mut s SSLConn) write(bytes []Byte) ? {
pub fn (mut s SSLConn) write(bytes []byte) ? {
unsafe {
mut ptr_base := byteptr(bytes.data)
mut total_sent := 0