Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function decodeF64(bytes) {
var buffer = Buffer.from(bytes);
return read(buffer, 0, true, DOUBLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F64);
}
export function decodeF64(bytes: Array): number {
const buffer = Buffer.from(bytes);
return read(buffer, 0, true, DOUBLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F64);
}
export function decodeF32(bytes) {
var buffer = Buffer.from(bytes);
return read(buffer, 0, true, SINGLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F32);
}
export function decodeF64(bytes) {
export function decodeF32(bytes: Array): number {
const buffer = Buffer.from(bytes);
return read(buffer, 0, true, SINGLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F32);
}
export function decodeF32(bytes: Array): number {
const buffer = Buffer.from(bytes);
return read(buffer, 0, true, SINGLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F32);
}
export function decodeF64(bytes: Array): number {
const buffer = Buffer.from(bytes);
return read(buffer, 0, true, DOUBLE_PRECISION_MANTISSA, NUMBER_OF_BYTE_F64);
}