@types/ffi
Advanced tools
+6
-6
| { | ||
| "name": "@types/ffi", | ||
| "version": "0.0.16", | ||
| "version": "0.0.17", | ||
| "description": "TypeScript definitions for node-ffi", | ||
| "license": "MIT", | ||
| "author": "Paul Loyd <https://github.com/loyd>", | ||
| "main": "", | ||
| "scripts": {}, | ||
| "author": "Paul Loyd <https://github.com/loyd>", | ||
| "repository": { | ||
@@ -12,4 +12,3 @@ "type": "git", | ||
| }, | ||
| "license": "MIT", | ||
| "typings": "index.d.ts", | ||
| "scripts": {}, | ||
| "dependencies": { | ||
@@ -19,3 +18,4 @@ "@types/ref": "0.0.*", | ||
| "@types/node": "4.0.*" | ||
| } | ||
| }, | ||
| "typings": "index.d.ts" | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| Additional Details | ||
| * Last updated: Thu, 14 Jul 2016 13:52:40 GMT | ||
| * Last updated: Tue, 19 Jul 2016 13:07:14 GMT | ||
| * File structure: ProperModule | ||
@@ -14,0 +14,0 @@ * Library Dependencies: node |
@@ -24,6 +24,6 @@ { | ||
| "files": [ | ||
| "index.d.ts", | ||
| "node-ffi-buffer.d.ts" | ||
| "index.d.ts" | ||
| ], | ||
| "contentHash": "f7d0f96a8ced74b201c303855214ecb526c03b423c574c711e5d5ef019e2e04d" | ||
| "hasPackageJson": false, | ||
| "contentHash": "de3552438565758308603958cf187886406be106a289617fc45e339cc0fd59ef" | ||
| } |
| // 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, string: string, encoding?: string): void; | ||
| /** Shorthand for `ref.writeInt64BE`. */ | ||
| writeInt64BE(offset: number, input: number): any; | ||
| /** Shorthand for `ref.writeInt64BE`. */ | ||
| writeInt64BE(offset: number, input: string): any; | ||
| /** Shorthand for `ref.writeInt64LE`. */ | ||
| writeInt64LE(offset: number, input: number): any; | ||
| /** Shorthand for `ref.writeInt64LE`. */ | ||
| writeInt64LE(offset: number, input: 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): any; | ||
| /** Shorthand for `ref.writeUInt64BE`. */ | ||
| writeUInt64BE(offset: number, input: string): any; | ||
| /** Shorthand for `ref.writeUInt64LE`. */ | ||
| writeUInt64LE(offset: number, input: number): any; | ||
| /** Shorthand for `ref.writeUInt64LE`. */ | ||
| writeUInt64LE(offset: number, input: string): any; | ||
| /** | ||
| * Generate string for inspecting. | ||
| * String includes the hex-encoded memory address of the Buffer instance. | ||
| * @override | ||
| */ | ||
| inspect(): string; | ||
| } |
9114
-20.19%4
-20%196
-22.53%