public void Save(global::System.IO.Stream stream, bool append, bool allBits) { if (!append) { stream.Flush(); } stream.Write(Content, 0, allBits ? _capacity : _offset); }
internal void method_9(short short_0, global::System.IO.Stream stream_0) { byte[] bytes = global::System.BitConverter.GetBytes(short_0); if (global::System.BitConverter.IsLittleEndian && this.method_0()) { global::System.Array.Reverse(bytes); } stream_0.Write(bytes, 0, bytes.Length); }
private static void Write22(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle buffer, int offset, int count) { // ([BII)V // ([BII)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::System.IO.Stream @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C <global::System.IO.Stream>(@__env, @__obj); @__real.Write(global::net.sf.jni4net.utils.Convertor.ArrayPrimJ2Cbyte(@__env, buffer), offset, count); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } }
public void Build(LanguagesContainer languages, string path) { using (global::System.IO.BinaryWriter binaryWriter = new global::System.IO.BinaryWriter(global::System.IO.File.Open(path, global::System.IO.FileMode.Create))) { global::System.IO.Stream baseStream = binaryWriter.BaseStream; this.class47_0.method_10(2, baseStream); int count = languages.Languages.Count; this.class47_0.method_10(count, baseStream); baseStream.WriteByte(1); int num = languages.Indexes.Length; this.class47_0.method_10(num, baseStream); for (int i = 0; i < num; i++) { this.class47_0.method_10(languages.Indexes[i], baseStream); } byte[] array = this.method_0(languages); baseStream.Write(array, 0, array.Length); } }