up: IO     index Zimbu documentation

CLASS IO.ByteReader @public

summary

     

A ByteReader that reads from a byteString.

Can also read characters.

 
Implements IO.I_ByteReader
Implements IO.I_CharReader
 
NEW(data) @public  Creates a ByteReader that reads from data.
$readByte() int @public  Reads and returns one byte.
$readChar() int @public  Reads and returns one char.
 

members (alphabetically)

     

PROC NEW(byteString data) @public

     

Creates a ByteReader that reads from data.

FUNC $readByte() int @public

     

Reads and returns one byte.

When at the end of the string returns IO.eof.

FUNC $readChar() int @public

     

Reads and returns one char.

When at the end of the string returns IO.eof.

license

      Copyright 2009 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0