MCPcopy Create free account
hub / github.com/buke/quickjs-go / IsUint8Array

Method IsUint8Array

value.go:1271–1274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1269}
1270
1271func (v *Value) IsUint8Array() bool {
1272 typeID, ok := v.typedArrayType()
1273 return ok && typeID == int(C.JS_TYPED_ARRAY_UINT8)
1274}
1275
1276func (v *Value) IsUint8ClampedArray() bool {
1277 typeID, ok := v.typedArrayType()

Callers 6

ToUint8ArrayMethod · 0.95
TestContextTypedArraysFunction · 0.80
TestDeprecatedAPIsFunction · 0.80
unmarshalSliceMethod · 0.80
TestValueTypedArraysFunction · 0.80

Calls 1

typedArrayTypeMethod · 0.95

Tested by 4

TestContextTypedArraysFunction · 0.64
TestDeprecatedAPIsFunction · 0.64
TestValueTypedArraysFunction · 0.64