@types/ffi
Advanced tools
+1
-1
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Copyright (c) Microsoft Corporation. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
+45
-45
| // DefinitelyTyped: partial | ||
| interface Buffer { | ||
| /** Shorthand for `ref.address`. */ | ||
| address(): number; | ||
| /** Shorthand for `ref.deref`. */ | ||
| deref(): any; | ||
| /** Shorthand for `ref.isNull`. */ | ||
| isNull(): boolean; | ||
| /** Shorthand for `ref.readCString`. */ | ||
| readCString(offset?: number): string; | ||
| /** Shorthand for `ref.readInt64BE`. */ | ||
| readInt64BE(offset?: number): string; | ||
| /** Shorthand for `ref.readInt64LE`. */ | ||
| readInt64LE(offset?: number): string; | ||
| /** Shorthand for `ref.readObject`. */ | ||
| readObject(offset?: number): string; | ||
| /** Shorthand for `ref.readPointer`. */ | ||
| readPointer(offset?: number): string; | ||
| /** Shorthand for `ref.readUInt64BE`. */ | ||
| readUInt64BE(offset?: number): string; | ||
| /** Shorthand for `ref.readUInt64LE`. */ | ||
| readUInt64LE(offset?: number): string; | ||
| /** Shorthand for `ref.ref`. */ | ||
| ref(): Buffer; | ||
| /** Shorthand for `ref.reinterpret`. */ | ||
| reinterpret(size: number, offset?: number): Buffer; | ||
| /** Shorthand for `ref.reinterpretUntilZeros`. */ | ||
| reinterpretUntilZeros(size: number, offset?: number): Buffer; | ||
| /** Shorthand for `ref.writeCString`. */ | ||
| writeCString(offset: number, input: string, encoding?: string): void; | ||
| /** Shorthand for `ref.writeInt64BE`. */ | ||
| writeInt64BE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.writeInt64LE`. */ | ||
| writeInt64LE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.writeObject`. */ | ||
| writeObject(offset: number, object: object): void; | ||
| /** Shorthand for `ref.writePointer`. */ | ||
| writePointer(offset: number, pointer: Buffer): void; | ||
| /** Shorthand for `ref.writeUInt64BE`. */ | ||
| writeUInt64BE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.writeUInt64LE`. */ | ||
| writeUInt64LE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.address`. */ | ||
| address(): number; | ||
| /** Shorthand for `ref.deref`. */ | ||
| deref(): any; | ||
| /** Shorthand for `ref.isNull`. */ | ||
| isNull(): boolean; | ||
| /** Shorthand for `ref.readCString`. */ | ||
| readCString(offset?: number): string; | ||
| /** Shorthand for `ref.readInt64BE`. */ | ||
| readInt64BE(offset?: number): string; | ||
| /** Shorthand for `ref.readInt64LE`. */ | ||
| readInt64LE(offset?: number): string; | ||
| /** Shorthand for `ref.readObject`. */ | ||
| readObject(offset?: number): string; | ||
| /** Shorthand for `ref.readPointer`. */ | ||
| readPointer(offset?: number): string; | ||
| /** Shorthand for `ref.readUInt64BE`. */ | ||
| readUInt64BE(offset?: number): string; | ||
| /** Shorthand for `ref.readUInt64LE`. */ | ||
| readUInt64LE(offset?: number): string; | ||
| /** Shorthand for `ref.ref`. */ | ||
| ref(): Buffer; | ||
| /** Shorthand for `ref.reinterpret`. */ | ||
| reinterpret(size: number, offset?: number): Buffer; | ||
| /** Shorthand for `ref.reinterpretUntilZeros`. */ | ||
| reinterpretUntilZeros(size: number, offset?: number): Buffer; | ||
| /** Shorthand for `ref.writeCString`. */ | ||
| writeCString(offset: number, input: string, encoding?: string): void; | ||
| /** Shorthand for `ref.writeInt64BE`. */ | ||
| writeInt64BE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.writeInt64LE`. */ | ||
| writeInt64LE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.writeObject`. */ | ||
| writeObject(offset: number, object: object): void; | ||
| /** Shorthand for `ref.writePointer`. */ | ||
| writePointer(offset: number, pointer: Buffer): void; | ||
| /** Shorthand for `ref.writeUInt64BE`. */ | ||
| writeUInt64BE(offset: number, input: number | string): any; | ||
| /** Shorthand for `ref.writeUInt64LE`. */ | ||
| writeUInt64LE(offset: number, input: number | string): any; | ||
| /** | ||
| * Generate string for inspecting. | ||
| * String includes the hex-encoded memory address of the Buffer instance. | ||
| */ | ||
| inspect(): string; | ||
| /** | ||
| * Generate string for inspecting. | ||
| * String includes the hex-encoded memory address of the Buffer instance. | ||
| */ | ||
| inspect(): string; | ||
| } |
+6
-5
| { | ||
| "name": "@types/ffi", | ||
| "version": "0.2.2", | ||
| "version": "0.2.3", | ||
| "description": "TypeScript definitions for node-ffi", | ||
@@ -19,6 +19,7 @@ "license": "MIT", | ||
| "main": "", | ||
| "types": "index", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/ffi" | ||
| }, | ||
@@ -31,4 +32,4 @@ "scripts": {}, | ||
| }, | ||
| "typesPublisherContentHash": "3f2b74c2204b410b17e3a6da071e7aacd31b50cf17e5da586bd2f3b8f62c1856", | ||
| "typeScriptVersion": "2.2" | ||
| "typesPublisherContentHash": "83d398a5250891d2b339c2e71ae1f050c6df98ed10c5c91e7794b349a04b413b", | ||
| "typeScriptVersion": "3.0" | ||
| } |
+6
-6
@@ -5,13 +5,13 @@ # Installation | ||
| # Summary | ||
| This package contains type definitions for node-ffi ( https://github.com/rbranson/node-ffi ). | ||
| This package contains type definitions for node-ffi (https://github.com/rbranson/node-ffi). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ffi | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ffi. | ||
| Additional Details | ||
| * Last updated: Wed, 13 Feb 2019 18:42:07 GMT | ||
| * Dependencies: @types/ref, @types/ref-struct, @types/node | ||
| ### Additional Details | ||
| * Last updated: Fri, 15 May 2020 04:09:24 GMT | ||
| * Dependencies: [@types/ref](https://npmjs.com/package/@types/ref), [@types/ref-struct](https://npmjs.com/package/@types/ref-struct), [@types/node](https://npmjs.com/package/@types/node) | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Paul Loyd <https://github.com/loyd>, Waiting Song <https://github.com/waitingsong>. | ||
| These definitions were written by [Paul Loyd](https://github.com/loyd), and [Waiting Song](https://github.com/waitingsong). |
11763
2.34%