Skip to content
Common data encoding algorithms
Julia
Branch: master
Clone or download
Latest commit 3d981d5 Aug 15, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Initial work. Base64 encoder. Jan 19, 2013
src Julia 1.0 compat Aug 7, 2018
test Julia 1.0 compat Aug 7, 2018
.travis.yml Restore nightly testing Aug 15, 2018
LICENSE.md A little documentation. Feb 14, 2013
README.md Update README.md Aug 5, 2016
REQUIRE Julia 1.0 compat Aug 7, 2018
appveyor.yml update appveyor.yml Aug 7, 2018

README.md

OSX/Linux: Build Status
pkg.julialang.org: Codecs
pkg.julialang.org: Codecs
pkg.julialang.org: Codecs
Windows: Build status

Codecs

Basic data encoding and decoding protocols.

Currently implemented protocols: Base64, Zlib, Binary Coded Decimal.

Synopsis

using Codecs

data = "Hello World!"
encoded = encode(Base64, encode(Zlib, data))
println(bytestring(encoded))

Output:

eNrzSM3JyVcIzy/KSVEEABxJBD4=

(Wow, that's inefficient.)

decoded = decode(Zlib, decode(Base64, encoded))
println(bytestring(decoded))

Output:

Hello World!

BCD is for encoding integers:

i = 2013
encoded = encode(BCD, i)
println(encoded)
encoded = encode(BCD, i, true)  # big endian digit order
println(encoded)

Output:

[0x31,0x02]
[0x20,0x13]
You can’t perform that action at this time.