@hazae41/binary
Advanced tools
Comparing version 1.2.25 to 1.2.26
import { Cursor } from '@hazae41/cursor'; | ||
import { Ok } from '@hazae41/result'; | ||
import { Result } from '@hazae41/result'; | ||
@@ -9,8 +9,7 @@ declare class Empty { | ||
constructor(); | ||
tryPrepare(): Ok<this>; | ||
trySize(): Ok<number>; | ||
tryWrite(cursor: Cursor): Ok<void>; | ||
static tryRead(cursor: Cursor): Ok<Empty>; | ||
trySize(): Result<number, never>; | ||
tryWrite(cursor: Cursor): Result<void, never>; | ||
static tryRead(cursor: Cursor): Result<Empty, never>; | ||
} | ||
export { Empty }; |
@@ -0,3 +1,4 @@ | ||
import { Bytes } from '@hazae41/bytes'; | ||
import { Cursor } from '@hazae41/cursor'; | ||
import { Result, Err, Ok } from '@hazae41/result'; | ||
import { Result } from '@hazae41/result'; | ||
@@ -33,5 +34,5 @@ declare class BinaryWriteUnderflowError extends Error { | ||
*/ | ||
function tryWriteToBytes<T extends Writable>(writable: T): Err<SizeError<T>> | Err<WriteError<T>> | Err<BinaryWriteUnderflowError> | Ok<Uint8Array>; | ||
function tryWriteToBytes<T extends Writable>(writable: T): Result<Bytes, SizeError<T> | WriteError<T> | BinaryWriteUnderflowError>; | ||
} | ||
export { BinaryWriteUnderflowError, Writable }; |
{ | ||
"type": "module", | ||
"name": "@hazae41/binary", | ||
"version": "1.2.25", | ||
"version": "1.2.26", | ||
"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
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
45830
577