The Ascii85 Module.jl
Ascii85
— ModuleAscii85
ASCII85 in Julia
Module Index
Detailed API
Ascii85.ascii85dec!
— Methodascii85dec!(in::IO, out::IO)
converts ASCII85 (Adobe style with <~ ~>) to binary data
# Arguments
- `in::IO`: an IO with ASCII85
- `out::IO`: an empty IO for the binary data
Ascii85.ascii85dec
— Methodascii85dec(in)
converts ASCII85 (Adobe style with <~ ~>) to binary data
# Arguments
- `in::Array{UInt8}` or `in::String`: the ASCII85 to decode
returns the binary data as Array{UInt8}
# Examples
```jldoctest
julia> b = ascii85dec("<~&i<X6z&i<X6X3C~>")
14-element Vector{UInt8}:
0x12
0x34
0x56
0x78
0x00
0x00
0x00
0x00
0x12
0x34
0x56
0x78
0xab
0xcd
Ascii85.ascii85enc!
— Methodascii85enc!(in::IO, out::IO)
converts binary data to ASCII85 (Adobe style with <~ ~>)
# Arguments
- `in::IO`: an IO with binary data
- `out::IO`: an IO for the ASCII85
Ascii85.ascii85enc
— Methodascii85enc(inarr::Array{UInt8})
converts binary data to ASCII85 (Adobe style with <~ ~>)
# Arguments
- `inarr::Array{UInt8}`: an IO with binary data
returns ASCII85 as String
# Examples
```jldoctest
julia> a = ascii85enc(hex2bytes("123456780000000012345678abcd"))
"<~&i<X6z&i<X6X3C~>"