MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / constructor

Method constructor

lib/component/utils/native-struct.js:8–14  ·  view source on GitHub ↗
(handleOrWrapper)

Source from the content-addressed store, hash-verified

6class NativeStruct {
7
8 constructor(handleOrWrapper) {
9 if (handleOrWrapper instanceof NativePointer) {
10 this.handle = handleOrWrapper;
11 } else {
12 this.handle = handleOrWrapper.handle;
13 }
14 }
15
16 equals(other) {
17 return this.handle.equals(other.handle);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected