[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

MemoryStream

inherits from PositionStream

Object <- PositionStream <- MemoryStream



Operations

Get list of all operations

Close
CountReadPending
Open
Read
Write


Attributes

Get list of all attributes

Class MemoryStream defines no new attributes.


Fields

Field Type
Stream: target: Object
PositionStream: position: Unsigned
length: Unsigned


Instance template

instance MemoryStream tag;
         target: nilObject;
       position: 0;
         length: 0;
end instance;

Class definition

Define Class MemoryStream;
    inherits from PositionStream;
    uses extra;

    overrides Open;
        // destination should be nilObject
    overrides Write;
    overrides Read;
        // CAUTION: if superclass reports a short read count,
        // should pass on to here else Position becomes inaccurate
    overrides Close;
    overrides CountReadPending;
        // returns the number of unread bytes in the buffer
end class;