GenUnitApp


UTF8

Namespace: global
Parent Module: YoLo

Functions and values

Function or valueDescription
bytes s
Signature: s:string -> byte []

Get the UTF8-encoding of the string.

decodeBase64
Signature: Base64String -> string

Convert the passed string s, assumed to be a valid Base64 encoding, to a CLR string, going through UTF8.

encodeBase64
Signature: string -> Base64String

Convert the passed string s to UTF8 and then encode the buffer with base64.

sha1
Signature: string -> byte []
sha1Hex
Signature: string -> string
sha256
Signature: string -> byte []
sha256Hex
Signature: string -> string
sha512
Signature: string -> byte []
sha512Hex
Signature: string -> string
toString bs
Signature: bs:byte [] -> string

Convert the full buffer b filled with UTF8-encoded strings into a CLR string.

toStringAtOffset b index count
Signature: b:byte [] -> index:int -> count:int -> string

Convert the byte array to a string, by indexing into the passed buffer b and taking count bytes from it.

Fork me on GitHub