Exemple #1
0
        public void Load(global::System.IO.Stream stream, bool append)
        {
            var e = new byte[stream.Length];

            stream.Read(e, 0, e.Length);
            if (!append)
            {
                Reset(true);
            }
            Capacity += e.Length - _offset + 100;
            push(e, e.Length * 8);
        }
Exemple #2
0
        private static int Read20(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle buffer, int offset, int count)
        {
            // ([BII)I
            // ([BII)I
            global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
            int @__return = default(int);

            try {
                global::System.IO.Stream @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.Stream>(@__env, @__obj);
                @__return = ((int)(@__real.Read(global::net.sf.jni4net.utils.Convertor.ArrayPrimJ2Cbyte(@__env, buffer), offset, count)));
            }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); }
            return(@__return);
        }
 private int DoRead(byte[] buffer, int offset, int count)
 {
     return(_stream.Read(buffer, offset, count));
 }
Exemple #4
0
 private byte[] method_6(global::System.IO.Stream stream_0, int int_0)
 {
     byte[] array = new byte[int_0];
     stream_0.Read(array, 0, int_0);
     return(array);
 }
Exemple #5
0
 public StreamWriter(global::System.IO.Stream stream, int shiftCapacity, bool compressed)
     : base(shiftCapacity, compressed)
 {
     Content = new byte[stream.Length];
     stream.Read(Content, 0, (int)stream.Length);
 }