(source, data, len)
| 243 | } |
| 244 | |
| 245 | function exportArrayBuffer(source, data, len) { |
| 246 | checkFFIPermission(); |
| 247 | |
| 248 | if (ObjectPrototypeToString(source) !== '[object ArrayBuffer]') { |
| 249 | throw new ERR_INVALID_ARG_TYPE('arrayBuffer', 'ArrayBuffer', source); |
| 250 | } |
| 251 | |
| 252 | validateInteger(len, 'len', 0); |
| 253 | |
| 254 | if (len < source.byteLength) { |
| 255 | throw new ERR_OUT_OF_RANGE('len', `>= ${source.byteLength}`, len); |
| 256 | } |
| 257 | |
| 258 | exportBytes(source, data, len); |
| 259 | } |
| 260 | |
| 261 | function exportArrayBufferView(source, data, len) { |
| 262 | checkFFIPermission(); |
nothing calls this directly
no test coverage detected
searching dependent graphs…