Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.
/ cassandra-codec Public archive

Cassandra data encoding / decoding, in particular Java BigInteger varints and Decimals

License

Notifications You must be signed in to change notification settings

wikimedia/cassandra-codec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cassandra / Java number encoding and decoding

Build Status

Usage:

npm install cassandra-codec

#encodeVarInt(i: Number): Buffer

Encodes a JavaScript Number into a Buffer, using the same format as java.math.BigInteger's toByteArray() method.

#decodeVarInt(b: Buffer): Number

Decodes a Buffer holding a Varint in java.math.BigInteger's toByteArray() format into a JavaScript Number.

License

MIT.

About

Cassandra data encoding / decoding, in particular Java BigInteger varints and Decimals

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •