@hookun/bitbybit
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -9,7 +9,7 @@ export declare class Wrapper { | ||
get bitLength(): number; | ||
get bitOffsetFromStart(): number; | ||
get residualBitLength(): number; | ||
get byte(): number; | ||
get bitOffsetFromStart(): number; | ||
get done(): boolean; | ||
residualBitLength(): number; | ||
protected step(bitLength: number): boolean; | ||
} |
@@ -19,14 +19,14 @@ "use strict"; | ||
} | ||
get bitOffsetFromStart() { | ||
return this.byteOffset * constants_1.WordSize + this.bitOffset; | ||
} | ||
get residualBitLength() { | ||
return this.bitLength - this.bitOffsetFromStart; | ||
} | ||
get byte() { | ||
return this.view.getUint8(this.byteOffset); | ||
} | ||
get bitOffsetFromStart() { | ||
return this.byteOffset * constants_1.WordSize + this.bitOffset; | ||
} | ||
get done() { | ||
return this.byteLength <= this.byteOffset; | ||
} | ||
residualBitLength() { | ||
return this.bitLength - this.bitOffsetFromStart; | ||
} | ||
step(bitLength) { | ||
@@ -33,0 +33,0 @@ const bitOffset = this.bitOffset + bitLength; |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"license": "Apache-2.0", | ||
@@ -14,0 +14,0 @@ "author": { |
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
26783