Exemple #1
0
//See BIO_write
func (bio *BIO) Write(b []byte) int {
	C.clear_sys_error()
	return int(C.BIO_write(bio.BIO, unsafe.Pointer(&b[0]), C.int(len(b))))
}
Exemple #2
0
//See BIO_write
func (self *BIO) Write(b []byte) int {
	C.clear_sys_error()
	ret := int(C.BIO_write(self.BIO, unsafe.Pointer(&b[0]), C.int(len(b))))
	return ret
}