MCPcopy Create free account
hub / github.com/dop251/goja / exportToArrayOrSlice

Method exportToArrayOrSlice

typedarrays.go:1257–1263  ·  view source on GitHub ↗
(dst reflect.Value, typ reflect.Type, ctx *objectExportCtx)

Source from the content-addressed store, hash-verified

1255}
1256
1257func (o *arrayBufferObject) exportToArrayOrSlice(dst reflect.Value, typ reflect.Type, ctx *objectExportCtx) error {
1258 if typ == typeBytes {
1259 dst.Set(reflect.ValueOf(o.data))
1260 return nil
1261 }
1262 return o.baseObject.exportToArrayOrSlice(dst, typ, ctx)
1263}
1264
1265func (r *Runtime) _newArrayBuffer(proto *Object, o *Object) *arrayBufferObject {
1266 if o == nil {

Callers

nothing calls this directly

Calls 2

SetMethod · 0.65
exportToArrayOrSliceMethod · 0.65

Tested by

no test coverage detected