bun-memory 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,12 @@ import ClientDLLJSON from './offsets/client_dll.json';
10
10
  import OffsetsJSON from './offsets/offsets.json';
11
11
 
12
12
  // !
13
+ const buffer = Buffer.from('Hello world!');
14
+ const bufferPtr = ptr(buffer);
13
15
 
16
+ const cString = new CString(bufferPtr);
17
+
18
+ console.log(cString.byteLength, cString.byteOffset); // undefined undefined
14
19
  // !
15
20
 
16
21
  const Delay = 2.5;
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "url": "git://github.com/obscuritysrl/bun-memory.git"
23
23
  },
24
24
  "type": "module",
25
- "version": "1.1.9",
25
+ "version": "1.1.11",
26
26
  "main": "./index.ts",
27
27
  "keywords": [
28
28
  "bun",
@@ -46,6 +46,5 @@
46
46
  ],
47
47
  "engines": {
48
48
  "bun": ">=1.1.0"
49
- },
50
- "types": "types/global.d.ts"
49
+ }
51
50
  }