mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
12 lines
278 B
Go
12 lines
278 B
Go
![]() |
package safejs
|
||
|
|
||
|
import "github.com/hack-pad/safejs"
|
||
|
|
||
|
func CopyBytesToGo(dst []byte, src Value) (int, error) {
|
||
|
return safejs.CopyBytesToGo(dst, safejs.Value(src))
|
||
|
}
|
||
|
|
||
|
func CopyBytesToJS(dst Value, src []byte) (int, error) {
|
||
|
return safejs.CopyBytesToJS(safejs.Value(dst), src)
|
||
|
}
|