Overview  Index  Help 
Standard ML Basis Library

Byte


structure Byte : BYTE =
struct
  val byteToChar : Word8.word -> char
  val charToByte : char -> Word8.word
  val bytesToString : Word8Vector.vector -> string
  val stringToBytes : string -> Word8Vector.vector
  val unpackStringVec : Word8Vector.vector * int * int option -> string
  val unpackString : Word8Array.array * int * int option -> string
  val packString : Word8Array.array * int * Substring.substring -> unit
end

       
Value detail

byteToChar

val byteToChar : Word8.word -> char


charToByte

val charToByte : char -> Word8.word


bytesToString

val bytesToString : Word8Vector.vector -> string


stringToBytes

val stringToBytes : string -> Word8Vector.vector


unpackStringVec

val unpackStringVec : Word8Vector.vector * int * int option -> string


unpackString

val unpackString : Word8Array.array * int * int option -> string


packString

val packString : Word8Array.array * int * Substring.substring -> unit

 


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).