@as-com/bufio
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -9,2 +9,5 @@ /// <reference types="node" /> | ||
import BufferWriter, { IWriter } from "./writer"; | ||
export interface StructConstructor<T extends Struct> { | ||
new (...args: any[]): T; | ||
} | ||
/** | ||
@@ -35,10 +38,10 @@ * Struct | ||
inspect(): this; | ||
static read(br: BufferReader, extra?: any): Struct; | ||
static decode(data: Buffer, extra?: any): Struct; | ||
static fromHex(str: string, extra?: any): Struct; | ||
static fromBase64(str: string, extra?: any): Struct; | ||
static fromString(str: string, extra?: any): Struct; | ||
static fromJSON(json: any, extra?: any): Struct; | ||
static fromOptions(options: any, extra?: any): Struct; | ||
static from(options: any, extra?: any): Struct; | ||
static read<T extends Struct, C extends StructConstructor<T>>(this: C, br: BufferReader, extra?: any): T; | ||
static decode<T extends Struct, C extends StructConstructor<T>>(this: C, data: Buffer, extra?: any): T; | ||
static fromHex<T extends Struct, C extends StructConstructor<T>>(this: C, str: string, extra?: any): T; | ||
static fromBase64<T extends Struct, C extends StructConstructor<T>>(this: C, str: string, extra?: any): T; | ||
static fromString<T extends Struct, C extends StructConstructor<T>>(this: C, str: string, extra?: any): T; | ||
static fromJSON<T extends Struct, C extends StructConstructor<T>>(this: C, json: any, extra?: any): T; | ||
static fromOptions<T extends Struct, C extends StructConstructor<T>>(this: C, options: any, extra?: any): T; | ||
static from<T extends Struct, C extends StructConstructor<T>>(this: C, options: any, extra?: any): T; | ||
toWriter(bw: BufferWriter, extra?: any): IWriter; | ||
@@ -45,0 +48,0 @@ fromReader(br: BufferReader, extra?: any): this; |
{ | ||
"name": "@as-com/bufio", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Buffer and serialization utilities for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191334
4886