New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sorted-blocks

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sorted-blocks

This is a simple library for append only data structure persistent on disk.

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

SortedBlocks

It is a append-only data structure used in conjunction with custom blocks to persist data on underlying store.

  • Can be used to create embeded database.
  • Lock free data structure for reading and writting.
  • Supports multiple writers without sync, cause of its append nature.
  • Supports Multi version concurrency.(M.V.C.C)
  • Supports custom blocks.
  • Supports consolidation or defrag of store.
  • Upcoming support for indexing for faster reads.
  • Out of box support for local caching.

Binary Block Format

This is the format used to append blocks in the store, where each block is formatted as follows.

Block-Body
Byte[]<4294967295Bytes
Index 0 in on LHS
Block-Header
Byte[]<4294967295Bytes
Index 0 in on LHS
Block-Header-Length
UInt32BE4Bytes
Block-Body-Length
UInt32BE4Bytes
Block-Type
UInt32BE4Bytes
Preamble-CRC-16
UInt16BE2Bytes
Preamble-CRC-16
UInt16BE2Bytes
SOB
0x23,0x21(#!)2Bytes
Index 0 in on RHS

Keywords

Append Only

FAQs

Package last updated on 12 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts