(arrayBuffer js.Value)
| 156 | } |
| 157 | |
| 158 | func extractArrayBuffer(arrayBuffer js.Value) []byte { |
| 159 | uint8Array := js.Global().Get("Uint8Array").New(arrayBuffer) |
| 160 | dst := make([]byte, uint8Array.Length()) |
| 161 | js.CopyBytesToGo(dst, uint8Array) |
| 162 | return dst |
| 163 | } |
| 164 | |
| 165 | func uint8Array(src []byte) js.Value { |
| 166 | uint8Array := js.Global().Get("Uint8Array").New(len(src)) |
no outgoing calls
no test coverage detected
searching dependent graphs…