示例#1
0
 public static void Dispose(IO::FileStream aThis, bool disposing,
                            [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     if (disposing)
     {
         innerStream.Dispose();
     }
 }
示例#2
0
 public static void SetLength(IO::FileStream aThis, long aLength,
                              [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     innerStream.SetLength(aLength);
 }
示例#3
0
 public static long get_Length(IO::FileStream aThis,
                               [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     return(innerStream.Length);
 }
示例#4
0
 public static void Write(IO::FileStream aThis, byte[] aBuffer, int aOffset, int aCount,
                          [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     innerStream.Write(aBuffer, aOffset, aCount);
 }
示例#5
0
 public static int Read(IO::FileStream aThis, byte[] aBuffer, int aOffset, int aCount,
                        [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     return(innerStream.Read(aBuffer, aOffset, aCount));
 }
示例#6
0
        // This plug basically forwards all calls to the $$InnerStream$$ stream, which is supplied by the file system.

        //  public static unsafe void Ctor(String aThis, [FieldAccess(Name = "$$Storage$$")]ref Char[] aStorage, Char[] aChars, int aStartIndex, int aLength,

        public static void Ctor(IO::FileStream aThis, string aPathname, IO::FileMode aMode,
                                [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
        {
            innerStream = VFSManager.GetFileStream(aPathname);
        }
示例#7
0
 public static void set_Position(IO::FileStream aThis,
                                 [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream, long value)
 {
     innerStream.Position = value;
 }
示例#8
0
 public static long get_Position(IO::FileStream aThis,
                                 [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     return(innerStream.Position);
 }
示例#9
0
 public static void Flush(IO::FileStream aThis,
                          [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
 {
     innerStream.Flush();
 }
示例#10
0
 public static long Seek(IO::FileStream aThis,
                         [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream, long offset, SeekOrigin origin)
 {
     return(innerStream.Seek(offset, origin));
 }
示例#11
0
        // This plug basically forwards all calls to the $$InnerStream$$ stream, which is supplied by the file system.

        //  public static unsafe void Ctor(String aThis, [FieldAccess(Name = "$$Storage$$")]ref Char[] aStorage, Char[] aChars, int aStartIndex, int aLength,

        public static void Ctor(IO::FileStream aThis, string aPathname, IO::FileMode aMode,
                                [FieldAccess(Name = "$$InnerStream$$")] ref IO::Stream innerStream)
        {
            FatHelpers.Debug("In FileStream.Ctor");
            innerStream = InitializeStream(aPathname, aMode);
        }