Oz and Mozart Users Mailing List

Re: 0 in a ByteString


From: Denys Duchier (duchier@ps.uni-sb.de)
Date: Tue May 27 2003 - 19:47:44 CEST


abecerra@avispa-cdc.ing.univalle.edu.co (Andres Becerra Sandoval) writes:

> I would like to put the byte 0 (00000000) in a ByteString, how could I do
> this?

Well, er... you just do it. Here is an example of a building a
bytestring of length 3 (character a, character NUL, character b):

declare B={ByteString.make [&a 0 &b]}

Cheers,

-- 
Dr. Denys Duchier
Équipe Calligramme
LORIA, Nancy, FRANCE
-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs@mozart-oz.org.



This archive was generated by hypermail 2b29.