Fix PageSize on write

This commit is contained in:
Jordi Baylina 2020-09-15 06:13:56 +02:00
parent ae6d44f41a
commit 40f0822a36
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112
6 changed files with 7 additions and 7 deletions

@ -2286,7 +2286,7 @@ async function readBinFile$1(fileName, type, maxVersion) {
async function createBinFile(fileName, type, version, nSections) {
const fd = await createOverride(fileName, null, 1<<7);
const fd = await createOverride(fileName, null);
const buff = new Uint8Array(4);
for (let i=0; i<4; i++) buff[i] = type.charCodeAt(i);

@ -756,7 +756,7 @@ async function readBinFile(fileName, type, maxVersion) {
async function createBinFile(fileName, type, version, nSections) {
const fd = await createOverride(fileName, null, 1<<7);
const fd = await createOverride(fileName, null);
const buff = new Uint8Array(4);
for (let i=0; i<4; i++) buff[i] = type.charCodeAt(i);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -36,7 +36,7 @@ export async function readBinFile(fileName, type, maxVersion) {
export async function createBinFile(fileName, type, version, nSections) {
const fd = await fastFile.createOverride(fileName, null, 1<<7);
const fd = await fastFile.createOverride(fileName, null);
const buff = new Uint8Array(4);
for (let i=0; i<4; i++) buff[i] = type.charCodeAt(i);

@ -478,6 +478,6 @@ export default async function newZKey(r1csName, ptauName, zkeyName, logger) {
csHasher.update(buff);
}
};
}