-- Autogenerated by MSIL2Ada v. 2
-- By: Martin C. Carlisle
--     Department of Computer Science
--     US Air Force Academy
--     carlislem@acm.org
pragma Extensions_Allowed(On);
with MSSyst.Object;
with MSIL_Types;
use MSIL_Types;
with type MSSyst.IDisposable.Ref is access;
with type MSSyst.IAsyncResult.Ref is access;
with type MSSyst.AsyncCallback.Ref is access;
with type MSSyst.Object.Ref is access;
with type MSSyst.Runtime.Remoting.ObjRef.Ref is access;
with type MSSyst.Type_k.Ref is access;
with MSSyst.IO.SeekOrigin;
with type MSSyst.String.Ref is access;
with type MSSyst.IO.Stream.Ref is access;
with MSSyst.IO.Stream;
package MSSyst.IO.MemoryStream is
   type Typ;
   type Ref is access all Typ'Class;
   type Ref_addrof is access all Ref;
   type Ref_Arr is array(Natural range <>) of Ref;
   type Ref_Array is access all Ref_Arr;
   type Ref_Array_addrof is access all Ref_Array;
   type Typ(
         I_IDisposable : MSSyst.IDisposable.Ref
      ) is new MSSyst.IO.Stream.Typ(
         I_IDisposable => I_IDisposable
      ) with record
      null;
   end record;
   function new_MemoryStream(
      This : Ref := null) return Ref;
   function new_MemoryStream(
      This : Ref := null;
      capacity : Integer) return Ref;
   function new_MemoryStream(
      This : Ref := null;
      buffer : MSIL_Types.unsigned_int8_Arr) return Ref;
   function new_MemoryStream(
      This : Ref := null;
      buffer : MSIL_Types.unsigned_int8_Arr;
      writable : Standard.Boolean) return Ref;
   function new_MemoryStream(
      This : Ref := null;
      buffer : MSIL_Types.unsigned_int8_Arr;
      index : Integer;
      count : Integer) return Ref;
   function new_MemoryStream(
      This : Ref := null;
      buffer : MSIL_Types.unsigned_int8_Arr;
      index : Integer;
      count : Integer;
      writable : Standard.Boolean) return Ref;
   function new_MemoryStream(
      This : Ref := null;
      buffer : MSIL_Types.unsigned_int8_Arr;
      index : Integer;
      count : Integer;
      writable : Standard.Boolean;
      publiclyVisible : Standard.Boolean) return Ref;
   procedure Close(
      This : access Typ);
   procedure Flush(
      This : access Typ);
   function get_CanRead(
      This : access Typ) return Standard.Boolean;
   function get_CanSeek(
      This : access Typ) return Standard.Boolean;
   function get_CanWrite(
      This : access Typ) return Standard.Boolean;
   function get_Capacity(
      This : access Typ) return Integer;
   function get_Length(
      This : access Typ) return Long_Long_Integer;
   function get_Position(
      This : access Typ) return Long_Long_Integer;
   function GetBuffer(
      This : access Typ) return MSIL_Types.unsigned_int8_Array;
   function Read(
      This : access Typ;
      buffer : MSIL_Types.unsigned_int8_Arr;
      offset : Integer;
      count : Integer) return Integer;
   function ReadByte(
      This : access Typ) return Integer;
   function Seek(
      This : access Typ;
      offset : Long_Long_Integer;
      loc : MSSyst.IO.SeekOrigin.Valuetype) return Long_Long_Integer;
   procedure set_Capacity(
      This : access Typ;
      value : Integer);
   procedure set_Position(
      This : access Typ;
      value : Long_Long_Integer);
   procedure SetLength(
      This : access Typ;
      value : Long_Long_Integer);
   function ToArray(
      This : access Typ) return MSIL_Types.unsigned_int8_Array;
   procedure Write(
      This : access Typ;
      buffer : MSIL_Types.unsigned_int8_Arr;
      offset : Integer;
      count : Integer);
   procedure WriteByte(
      This : access Typ;
      value : MSIL_Types.unsigned_int8);
   procedure WriteTo(
      This : access Typ;
      stream : MSSyst.IO.Stream.Ref);
private
   pragma Convention(MSIL,Typ);
   pragma MSIL_Constructor(new_MemoryStream);
   pragma Import(MSIL,Close,"Close");
   pragma Import(MSIL,Flush,"Flush");
   pragma Import(MSIL,get_CanRead,"get_CanRead");
   pragma Import(MSIL,get_CanSeek,"get_CanSeek");
   pragma Import(MSIL,get_CanWrite,"get_CanWrite");
   pragma Import(MSIL,get_Capacity,"get_Capacity");
   pragma Import(MSIL,get_Length,"get_Length");
   pragma Import(MSIL,get_Position,"get_Position");
   pragma Import(MSIL,GetBuffer,"GetBuffer");
   pragma Import(MSIL,Read,"Read");
   pragma Import(MSIL,ReadByte,"ReadByte");
   pragma Import(MSIL,Seek,"Seek");
   pragma Import(MSIL,set_Capacity,"set_Capacity");
   pragma Import(MSIL,set_Position,"set_Position");
   pragma Import(MSIL,SetLength,"SetLength");
   pragma Import(MSIL,ToArray,"ToArray");
   pragma Import(MSIL,Write,"Write");
   pragma Import(MSIL,WriteByte,"WriteByte");
   pragma Import(MSIL,WriteTo,"WriteTo");
end MSSyst.IO.MemoryStream;
pragma Extensions_Allowed(Off);
pragma Import(MSIL,MSSyst.IO.MemoryStream,
   ".ver 1:0:5000:0 .publickeytoken=( b7 7a 5c 56 19 34 e0 89 )",
   "[mscorlib]System.IO.MemoryStream");
