internal string method_7(global::System.IO.Stream stream_0) { ushort num = this.method_3(stream_0); byte[] array = new byte[(int)num]; for (int i = 0; i < (int)num; i++) { byte b = (byte)stream_0.ReadByte(); array[i] = b; } global::System.Text.Encoding utf = global::System.Text.Encoding.UTF8; return(utf.GetString(array)); }
private static int ReadByte21(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()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.ReadByte())); }catch (global::System.Exception __ex) { @__env.ThrowExisting(__ex); } return(@__return); }
public LanguagesContainer Parse(LanguagesContainer lc, global::System.IO.Stream s) { this.class47_0.method_4(s); int num = this.class47_0.method_4(s); s.ReadByte(); int num2 = this.class47_0.method_4(s); int[] array = new int[num2]; for (int i = 0; i < num2; i++) { array[i] = this.class47_0.method_4(s); } lc.Indexes = array; global::System.Collections.Generic.Dictionary <string, LanguageEntry> dictionary = new global::System.Collections.Generic.Dictionary <string, LanguageEntry>(); for (int j = 0; j < num; j++) { string text = this.class47_0.method_7(s); int size = this.class47_0.method_4(s); LanguageEntry value = new LanguageEntry(text, size); dictionary.Add(text, value); } for (int k = 0; k < num; k++) { s.ReadByte(); this.class47_0.method_4(s); string key = this.class47_0.method_7(s); int num3 = this.class47_0.method_4(s); LanguageEntry languageEntry = dictionary[key]; for (int l = 0; l < num3; l++) { string message = this.class47_0.method_7(s); languageEntry.Messages.Add(new MessageEntry(message)); } } lc.Languages = dictionary; return(lc); }