How can I convert buf
to Word8VectorSlice.slice
in sml/nj? For example,
val msg = "hello\n";
val buf = Byte.stringToBytes msg; (* how to convert to Word8VectorSlice.slice ?*)
Word8VectorSlice.full buf;
Docs: http://sml-family.org/Basis/mono-vector-slice.html#SIG:MONO_VECTOR_SLICE.full:VAL