16 lines
519 B
OCaml
16 lines
519 B
OCaml
(** Encoding Strings *)
|
|
|
|
(** Encode a string containing ASCII characters.
|
|
@param str is a string representing message.
|
|
@param bits number of bits on which to store a character ;
|
|
alphanumeric ASCII is 7.
|
|
*)
|
|
val encode : string -> int -> int list
|
|
|
|
(** Decode a string containing ASCII characters.
|
|
@param msg is an integer representing an encoded message.
|
|
@param bits number of bits on which to store a character ;
|
|
alphanumeric ASCII is 7.
|
|
*)
|
|
val decode : int list -> int -> string
|