MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / getLib

Method getLib

nodejs_package/brainflow/ml_model.ts:89–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 }
88
89 private getLib()
90 {
91 try
92 {
93 const lib = koffi.load(this.dllPath);
94 return lib;
95 }
96 catch (err)
97 {
98 console.error(err);
99 throw new BrainFlowError (BrainFlowExitCodes.GENERAL_ERROR,
100 `${'Could not load MLModule DLL - path://'}${this.dllPath}`);
101 }
102 }
103
104 public static getInstance(): MLModuleDLL
105 {

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected