next up previous contents index
Next: resize! Up: PrimitiveArrayType Previous: new   Contents   Index


read,write


Usage

read(in, n)
write(out, a, n)


Signatures

read: (BinaryReader, MachineInteger) $\to$ %
write: (BinaryWriter, %, MachineInteger) $\to$ BinaryWriter


Parameter Type Description
in BinaryReader an input stream
out BinaryWriter an output stream
n MachineInteger a nonnegative size
a % A primitive array


Returns

read(in, n) reads a primitive array of $n$ elements in binary format from the stream in and returns the array read, while write(out, a, n) writes the first $n$ elements of $a$ to the stream out and returns the stream after the write.



Manuel Bronstein 2004-06-28