@hazae41/binary
Advanced tools
Comparing version 1.2.17 to 1.2.18
@@ -6,3 +6,3 @@ import * as index from './mods/index.js'; | ||
export { Preparable } from './mods/binary/preparable.js'; | ||
export { Readable } from './mods/binary/readable.js'; | ||
export { Writable } from './mods/binary/writable.js'; | ||
export { BinaryReadUnderflowError, Readable } from './mods/binary/readable.js'; | ||
export { BinaryWriteUnderflowError, Writable } from './mods/binary/writable.js'; |
import { Cursor } from '@hazae41/cursor'; | ||
import { Result } from '@hazae41/result'; | ||
declare class BinaryReadUnderflowError extends Error { | ||
#private; | ||
readonly cursor: Cursor; | ||
constructor(cursor: Cursor); | ||
} | ||
/** | ||
@@ -30,5 +35,5 @@ * A readable binary data type | ||
*/ | ||
function tryReadFromBytes<T>(readable: Readable<T>, bytes: Uint8Array): Result<T, Error>; | ||
function tryReadFromBytes<T>(readable: Readable<T>, bytes: Uint8Array): Result<T, Error | BinaryReadUnderflowError>; | ||
} | ||
export { Readable }; | ||
export { BinaryReadUnderflowError, Readable }; |
@@ -5,2 +5,7 @@ import { Bytes } from '@hazae41/bytes'; | ||
declare class BinaryWriteUnderflowError extends Error { | ||
#private; | ||
readonly cursor: Cursor; | ||
constructor(cursor: Cursor); | ||
} | ||
/** | ||
@@ -26,5 +31,5 @@ * A writable binary data type | ||
*/ | ||
function tryWriteToBytes(writable: Writable): Result<Bytes, Error>; | ||
function tryWriteToBytes(writable: Writable): Result<Bytes, Error | BinaryWriteUnderflowError>; | ||
} | ||
export { Writable }; | ||
export { BinaryWriteUnderflowError, Writable }; |
export { Empty } from './binary/empty.js'; | ||
export { Opaque, SafeOpaque, UnsafeOpaque } from './binary/opaque.js'; | ||
export { Preparable } from './binary/preparable.js'; | ||
export { Readable } from './binary/readable.js'; | ||
export { Writable } from './binary/writable.js'; | ||
export { BinaryReadUnderflowError, Readable } from './binary/readable.js'; | ||
export { BinaryWriteUnderflowError, Writable } from './binary/writable.js'; |
{ | ||
"type": "module", | ||
"name": "@hazae41/binary", | ||
"version": "1.2.17", | ||
"version": "1.2.18", | ||
"description": "Zero-copy binary data types", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/hazae41/binary", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
46376
632