ASCII Module
This module provide convenience functions for working with ASCII strings. It's one of the few public Suave Util modules. It is not recommended to use this module outside of pure machine-to-machine communication, as people speak more languages then US english, like Mandarin, Swedish or Vietnamese, which cannot be represented in ASCII.
Functions and values
| Function or value | Description |
Full Usage:
ASCII.bytes s
Parameters:
string
Returns: byte[]
|
|
Full Usage:
ASCII.bytesToBuffer s buff offset
Parameters:
string
buff : byte[]
offset : int
Returns: int
|
|
Full Usage:
ASCII.decodeBase64 s
Parameters:
string
Returns: string
|
|
Full Usage:
ASCII.encodeBase64 s
Parameters:
string
Returns: string
|
|
Full Usage:
ASCII.toString b
Parameters:
byte[]
Returns: string
|
|
Full Usage:
ASCII.toStringAtOffset buff index count
Parameters:
byte[]
index : int
count : int
Returns: string
|
|
Full Usage:
ASCII.tryDecodeBase64 s
Parameters:
string
Returns: string option
|