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

@as-com/bufio

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@as-com/bufio - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

19

lib/struct.d.ts

@@ -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

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