| User's Guide: A Framework for Object Persistency for GNAT; Version 0.6.1; Document Revision $Revision: 1.17 $ | ||
|---|---|---|
| Prev | Chapter 15. ODB.Memory_Stream | Next |
function Stream(
Size : in Stream_Element_Offset ) return Stream_Access;
Buffer_Overrun : exception; Buffer_Underrun : exception;
Create a memory stream
Postconditions:
Notes:
procedure Destroy(
This : in out Stream_Access );
Destroy the memory stream
C.1 - The stream has to be valid
Exceptions:
procedure Clear(
This : in Stream_Access );
Clear the memory stream.
C.1 - Stream has to be valid
P.1 - Read and write pointer are reseted.
Notes:
function Write_Offset(
This : in Stream_Access ) return Natural;
Preconditions:
Exceptions:
procedure Read_Offset(
This : in Stream_Access;
Offset : in Natural ) ;
Preconditions:
Exceptions:
procedure Copy_In(
This : in Stream_Access;
Source : in Stream_Element_Array );
Preconditions:
Exceptions:
procedure Copy_Out(
This : in Stream_Access;
Target : in out Stream_Element_Array;
Last : out Stream_Element_Offset );
function Size(
This : in Stream_Access ) return Natural;
Preconditions:
Exceptions: