Transforms for single-byte encodings
A library for converting Unicode to obscure single byte codepage for use with thermal printers.
Get the byte length of an ArrayBuffer, even in engines without a `.byteLength` method.
Robustly get the byte length of a Typed Array
Robustly get the byte offset of a Typed Array
Get the byteOffset out of a DataView, robustly.
Get the byteLength out of a DataView, robustly.
Conversion of JavaScript primitives to and from Buffer with binary order matching natural primitive order
Convert double byte width digit and english letter into single byte
Get utf8 byte length of string
Reads / writes floats / doubles from / to buffers in both modern and ancient browsers.
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
Base64 encoding/decoding in pure JS
LEB128 utilities for Node
Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.
Pattern-matching on byte buffers
Platform byte order.
Strip UTF-8 byte order mark (BOM) from a string
Windows legacy GUID parser
See our api docs https://serialport.io/docs/api-parser-byte-length
Node addon for string extraction for msgpackr
Sniff the encoding from a HTML byte stream
See our api docs https://serialport.io/docs/api-parser-inter-byte-timeout
Bytes utility functions for ethers.
XOR cipher for byte streams and files — repeating-key and single-byte modes with English-scored brute-force
A Gecko-oriented implementation of the Encoding Standard
A Gecko-oriented implementation of the Encoding Standard
A character encoding detector for legacy Web content
Empower regex with streaming capabilities - high-performance async streaming pattern search using regex for multi-byte pattern matching in data streams
A simple converter for half-width/full-width Japanese language characters (katakana, hiragana, and ASCII)
A line-map and character-encoding-aware red-green tree for structured, lossless, incrementally-editable text
SIMD-accelerated JPEG encoder (baseline + progressive SOF2, RGB / grayscale / CMYK, EXIF / ICC pass-through) and Huffman decoder with EXIF / ICC retrieval.
Blazing fast string search using bit-parallel algorithms - up to 8x faster than naive search
A high-performance, zero-overhead byte buffer implementation in Rust that outperforms the industry-standard `BytesMut` by **6-11x** in most scenarios.
A `no_std` crate for compile-time encrypted secrets.
A no_std compatible rust library for handling byte order conversions between different endianness formats.
Safely print all code points from Unicode or single-byte encodings
Visualizes encodings in the terminal. Supports UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE, US-ASCII, ASCII-8BIT, and most of Rubies single-byte encodings. Comes as CLI command and as Ruby Kernel method.
Mosaheh repairs UTF-8 Arabic (U+0600 - U+06FF) text which has been mistakenly saved as single-byte latin1 encoding (cp1252). The biggest usecase for it is to repair Arabic data stored in MySql databases with the wrong encoding.
A simple Gem to enable any `ActiveRecord::Base` object to store a set of attributes in a set like structure represented through a bitfield on the database level. You only have to specify the name of the set to hold the attributes in question an the rest is done for you through some fine selected Ruby magic. Here is a simple example of how you could use the gem: class Person < ActiveRecord::Base has_set :interests end To get this to work you need some additional work done first: 1. You need an unsigned 8-Byte integer column in your database to store the bitfield. It is expected that the column is named after the name of the set with the suffix `_bitfield` appended (e.g. `interests_bitfield`). You can change that default behavior by providing the option `:column_name` (e.g. `has_set :interests, :column_name => :my_custom_column`). 2. You need a class that provides the valid values to be stored within the set and map the single bits back to something meaningful. The class should be named after the name of the set (you can change this through the `:enum_class` option). This class could be seen as an enumeration and must implement the following simple interface: * There must be a class method `values` to return all valid enumerators in the defined enumeration. * Each enumerator must implement a `name` method to return a literal representation for identification. The literal must be of the type `String`. * Each enumerator must implement a `bitfield_index` method to return the exponent of the number 2 for calculation the position of this enumerator in the bitfield. **Attention** Changing this index afterwards will destroy your data integrity. Here is a simple example of how to implement such a enumeration type while using the the `renum` gem for simplicity. You are free to use anything else that matches the described interface. enum :Interests do attr_reader :bitfield_index Art(0) Golf(1) Sleeping(2) Drinking(3) Dating(4) Shopping(5) def init(bitfield_index) @bitfield_index = bitfield_index end end
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.