Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koffi

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koffi - npm Package Compare versions

Comparing version 2.3.12 to 2.3.13

build/2.3.13/koffi_darwin_arm64/koffi.node

6

CHANGELOG.md

@@ -7,2 +7,8 @@ # Changelog

#### Koffi 2.3.13
**Main changes:**
- Add `koffi.address()` to get the raw value of a wrapper pointer
#### Koffi 2.3.12

@@ -9,0 +15,0 @@

4

doc/pointers.md

@@ -136,1 +136,5 @@ # Data pointers

Read the documentation for [disposable types](calls.md#heap-allocated-values) on the page about function calls.
## Unwrap pointers
You can use `koffi.address(ptr)` on a pointer to get the numeric value as a [BigInt object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt).

4

package.json
{
"name": "koffi",
"version": "2.3.12",
"stable": "2.3.12",
"version": "2.3.13",
"stable": "2.3.13",
"description": "Fast and simple C FFI (foreign function interface) for Node.js",

@@ -6,0 +6,0 @@ "keywords": [

@@ -104,4 +104,2 @@ // Copyright 2023 Niels Martignène <niels.martignene@protonmail.com>

export function as(value: any, type: TypeSpec): IKoffiPointerCast;
export function disposable(type: TypeSpec): IKoffiCType;

@@ -118,2 +116,3 @@ export function disposable(name: string, type: TypeSpec): IKoffiCType;

export function as(value: any, type: TypeSpec): IKoffiPointerCast;
export function decode(value: any, type: TypeSpec): any;

@@ -123,2 +122,3 @@ export function decode(value: any, type: TypeSpec, len: number): any;

export function decode(value: any, offset: number, type: TypeSpec, len: number): any;
export function address(value: any): bigint;

@@ -125,0 +125,0 @@ export function sizeof(type: TypeSpec): number;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc