enc

Crates.ioenc
lib.rsenc
version0.7.0
sourcesrc
created_at2019-09-19 01:14:22.881248
updated_at2024-06-24 05:00:19.287645
descriptionThis library aids in processing encoded data.
homepagehttps://github.com/nikdeapen/enc
repositoryhttps://github.com/nikdeapen/enc
max_upload_size
id165843
size103,498
Nik Deapen (nikdeapen)

documentation

README

Build Status

enc

This library aids in processing encoded data.

Dependencies & Features

Dependency:

enc = { version = "0.7.0", features = ["full"] }

There are no transitive-dependencies.

Features:

  • full
  • base-64
  • hex
  • percent
  • var-int

Data & Value Encoders

There are separate traits for encoding data and values.

The src/data folder holds the traits: Encoder, StringEncoder, Decoder and Validator. These provide an interface for encoders that operate on slices of data such as hex & base-64.

The src/value folder holds the traits: EncodedLen, EncodeToSlice, EncodeToWrite etc. These provide an interface for values that know how to encode and decode themselves such as variable-length integers (var-int) and can be easily extended by custom types.

Commit count: 9

cargo fmt