--------------------------------------------------------------------------------
-- <auto-generated>                                                           --
--     This code was generated by a tool.                                     --
--                                                                            --
--     Changes to this file may cause incorrect behavior and will be lost if  --
--     the code is regenerated.                                               --
-- </auto-generated>                                                          --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--                                                                            --
--    Copyright(c) 2019 Alexander Gamper, All Rights Reserved.                --
--                                                                            --
--    Ada-NetFramework                                                        --
--    Version   : 1.0.0.0                                                     --
--                                                                            --
-- This program is free software: you can redistribute it and / or modify     --
-- it under the terms of the GNU Lesser General Public License as published by--
-- the Free Software Foundation, either version 3 of the License, or          --
-- (at your option) any later version.                                        --
--                                                                            --
-- This program is distributed in the hope that it will be useful,            --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of             --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the               --
-- GNU Lesser General Public License for more details.                        --
--                                                                            --
-- You should have received a copy of the GNU Lesser General Public License   --
-- along with this program.If not, see http://www.gnu.org/licenses            --
--                                                                            --
--------------------------------------------------------------------------------
with NetFrameworkBase.System.MarshalByRefObject;
limited with NetFrameworkBase.System.Threading.CancellationToken;
limited with NetFrameworkBase.System.AsyncCallback;
with NetFrameworkBase.System.Object;
limited with NetFrameworkBase.System.IAsyncResult;
limited with NetFrameworkBase.System.IO.SeekOrigin;
limited with NetFrameworkBase.System.Threading.Tasks.Task_x;
--------------------------------------------------------------------------------
package NetFrameworkBase.System.IO.Stream is
   
   type Kind is new NetFrameworkBase.System.MarshalByRefObject.Kind with null record;
   type Kind_Ptr is access all Kind;
   type Kind_Array is array(Natural range<>) of Kind_Ptr;
   type Kind_Array_Ptr is access all Kind_Array;
   
      function CanTimeout
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Boolean;
      
      function ReadTimeout
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Int32;
      
      procedure ReadTimeout
      (
         this : in out Stream.Kind;
         value : NetFrameworkBase.Int32
      );
      
      function WriteTimeout
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Int32;
      
      procedure WriteTimeout
      (
         this : in out Stream.Kind;
         value : NetFrameworkBase.Int32
      );
      
      function CopyToAsync
      (
         this : in out Stream.Kind;
         destination : NetFrameworkBase.System.IO.Stream.Kind_Ptr; 
         bufferSize : NetFrameworkBase.Int32; 
         cancellationToken : NetFrameworkBase.System.Threading.CancellationToken.Kind_Ptr
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      procedure Close
      (
         this : in out Stream.Kind
      );
      
      procedure Dispose
      (
         this : in out Stream.Kind
      );
      
      function BeginRead
      (
         this : in out Stream.Kind;
         buffer : NetFrameworkBase.Byte_Array; 
         offset : NetFrameworkBase.Int32; 
         count : NetFrameworkBase.Int32; 
         callback : NetFrameworkBase.System.AsyncCallback.Kind_Ptr; 
         state : NetFrameworkBase.System.Object.Kind_Ptr
      )
      return NetFrameworkBase.System.IAsyncResult.Kind_Ptr;
      
      function EndRead
      (
         this : in out Stream.Kind;
         asyncResult : NetFrameworkBase.System.IAsyncResult.Kind_Ptr
      )
      return NetFrameworkBase.Int32;
      
      function BeginWrite
      (
         this : in out Stream.Kind;
         buffer : NetFrameworkBase.Byte_Array; 
         offset : NetFrameworkBase.Int32; 
         count : NetFrameworkBase.Int32; 
         callback : NetFrameworkBase.System.AsyncCallback.Kind_Ptr; 
         state : NetFrameworkBase.System.Object.Kind_Ptr
      )
      return NetFrameworkBase.System.IAsyncResult.Kind_Ptr;
      
      procedure EndWrite
      (
         this : in out Stream.Kind;
         asyncResult : NetFrameworkBase.System.IAsyncResult.Kind_Ptr
      );
      
      function WriteAsync
      (
         this : in out Stream.Kind;
         buffer : NetFrameworkBase.Byte_Array; 
         offset : NetFrameworkBase.Int32; 
         count : NetFrameworkBase.Int32; 
         cancellationToken : NetFrameworkBase.System.Threading.CancellationToken.Kind_Ptr
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      function ReadByte
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Int32;
      
      procedure WriteByte
      (
         this : in out Stream.Kind;
         value : NetFrameworkBase.Byte
      );
      
      function Synchronized_x
      (
         stream : NetFrameworkBase.System.IO.Stream.Kind_Ptr
      )
      return NetFrameworkBase.System.IO.Stream.Kind_Ptr;
      
      function CanRead
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Boolean;
      
      function CanSeek
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Boolean;
      
      function CanWrite
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Boolean;
      
      function Length
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Int64;
      
      function Position
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.Int64;
      
      procedure Position
      (
         this : in out Stream.Kind;
         value : NetFrameworkBase.Int64
      );
      
      function CopyToAsync
      (
         this : in out Stream.Kind;
         destination : NetFrameworkBase.System.IO.Stream.Kind_Ptr
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      function CopyToAsync
      (
         this : in out Stream.Kind;
         destination : NetFrameworkBase.System.IO.Stream.Kind_Ptr; 
         bufferSize : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      procedure CopyTo
      (
         this : in out Stream.Kind;
         destination : NetFrameworkBase.System.IO.Stream.Kind_Ptr
      );
      
      procedure CopyTo
      (
         this : in out Stream.Kind;
         destination : NetFrameworkBase.System.IO.Stream.Kind_Ptr; 
         bufferSize : NetFrameworkBase.Int32
      );
      
      procedure Flush
      (
         this : in out Stream.Kind
      );
      
      function FlushAsync
      (
         this : in out Stream.Kind
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      function FlushAsync
      (
         this : in out Stream.Kind;
         cancellationToken : NetFrameworkBase.System.Threading.CancellationToken.Kind_Ptr
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      function WriteAsync
      (
         this : in out Stream.Kind;
         buffer : NetFrameworkBase.Byte_Array; 
         offset : NetFrameworkBase.Int32; 
         count : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.System.Threading.Tasks.Task_x.Kind_Ptr;
      
      function Seek
      (
         this : in out Stream.Kind;
         offset : NetFrameworkBase.Int64; 
         origin : NetFrameworkBase.System.IO.SeekOrigin.Kind
      )
      return NetFrameworkBase.Int64;
      
      procedure SetLength
      (
         this : in out Stream.Kind;
         value : NetFrameworkBase.Int64
      );
      
      function Read
      (
         this : in out Stream.Kind;
         buffer : in out NetFrameworkBase.Byte_Array; 
         offset : NetFrameworkBase.Int32; 
         count : NetFrameworkBase.Int32
      )
      return NetFrameworkBase.Int32;
      
      procedure Write
      (
         this : in out Stream.Kind;
         buffer : NetFrameworkBase.Byte_Array; 
         offset : NetFrameworkBase.Int32; 
         count : NetFrameworkBase.Int32
      );
      
end;
