more input stream handling code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-19 17:09:31 +09:00
parent 0bf106532d
commit 4ab0187260
6 changed files with 231 additions and 58 deletions

View File

@ -187,7 +187,7 @@ func hcl_go_cci_handler(c *C.hcl_t, cmd C.hcl_io_cmd_t, arg unsafe.Pointer) C.in
return -1
}
ioarg.is_bytes = 0
ioarg.byte_oriented = 0
if unsafe.Sizeof(buf[0]) == unsafe.Sizeof(dummy) {
C.memcpy(
unsafe.Pointer(&ioarg.buf[0]),