代码拉取完成,页面将自动刷新
// import connect, {close} from "./generator.mjs";
import connect, {close} from "./test/index.mjs";
const storage = connect({name: 'test'})
// console.log(storage)
// storage.admin.push({
// uid: 123,
// pwd: 456,
// invalid: true,
// level: 6,
// icon: Buffer.from('666666')
// })
// storage.r1.push({
// c2: 312,
// c3: 645
// })
// storage.r2.push({
// c1: 312,
// c3: 645,
// })
// console.log(JSON.stringify(storage.r1.indexByC1(), null, 2))
console.log(JSON.stringify(storage, null, 2))
// console.log(JSON.stringify(storage.admin.indexByUid(12), null, 2))
// console.log(JSON.stringify(storage.admin.indexByUid(), null, 2))
// storage.admin.indexByUid(12)[0].level = 1
// storage.admin.remove(storage.admin.indexByUid(312))
storage[close]()
// import fs from 'fs'
// fs.appendFileSync('./test.txt', JSON.stringify({
// a: Number.MAX_SAFE_INTEGER - 1,
// b: Number.MAX_SAFE_INTEGER,
// c: Number.MAX_SAFE_INTEGER + 1
// }))
// console.log(console.log(JSON.parse(fs.readFileSync('./test.txt', 'utf-8'))))
// let buffer = Buffer.alloc(8)
// console.log(4294967295, Number.MAX_SAFE_INTEGER)
// buffer.writeBigUInt64BE(BigInt(Number.MAX_SAFE_INTEGER))
// buffer.writeUInt32BE(4294967295)
// console.log(buffer)
// writeUInt8 0,255
// writeUInt16BE 0,65535
// writeUInt32BE 0,4294967295
// writeBigUInt64BE BigInt
// console.log(Number.MAX_SAFE_INTEGER / 1024 / 1024 / 1024 / 1024 / 1024)
// console.log(Number.MAX_SAFE_INTEGER)
// console.log(Number.MAX_SAFE_INTEGER * 5)
// console.log(BigInt(Number.MAX_SAFE_INTEGER) * BigInt(5))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。