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.7 to 0.2.8

36

lib/struct.d.ts

@@ -20,3 +20,3 @@ /// <reference types="node" />

getSize(extra?: any): number;
write(bw: IWriter, extra?: any): IWriter;
write(bw: IWriter, extra?: any): any;
read(br: BufferReader, extra?: any): this;

@@ -38,11 +38,27 @@ toString(): string;

inspect(): any;
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;
static read<T extends Struct>(this: {
new (...args: any[]): T;
}, br: BufferReader, extra?: any): T;
static decode<T extends Struct>(this: {
new (...args: any[]): T;
}, data: Buffer, extra?: any): T;
static fromHex<T extends Struct>(this: {
new (...args: any[]): T;
}, str: string, extra?: any): T;
static fromBase64<T extends Struct>(this: {
new (...args: any[]): T;
}, str: string, extra?: any): T;
static fromString<T extends Struct>(this: {
new (...args: any[]): T;
}, str: string, extra?: any): T;
static fromJSON<T extends Struct>(this: {
new (...args: any[]): T;
}, json: any, extra?: any): T;
static fromOptions<T extends Struct>(this: {
new (...args: any[]): T;
}, options: any, extra?: any): T;
static from<T extends Struct>(this: {
new (...args: any[]): T;
}, options: any, extra?: any): T;
toWriter(bw: BufferWriter, extra?: any): any;
fromReader(br: BufferReader, extra?: any): this;

@@ -49,0 +65,0 @@ toRaw(extra?: any): Buffer;

{
"name": "@as-com/bufio",
"version": "0.2.7",
"version": "0.2.8",
"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