Ejemplo n.º 1
0
        public byte[] Rebuild()
        {
            FileOutput f = new FileOutput();

            f.Endian = Endianness.Big;

            f.writeInt(2);
            f.writeInt(langs.Count);
            f.writeByte(0);

            f.writeBytes(ids.Rebuild());

            foreach (Language l in langs)
            {
                f.writeShort(l.name.Length);
                f.writeString(l.name);
                f.writeInt(7 + l.name.Length + l.Rebuild().Length);
            }

            foreach (Language l in langs)
            {
                f.writeInt(2);
                f.writeByte(0);
                f.writeShort(l.name.Length);
                f.writeString(l.name);
                f.writeBytes(l.Rebuild());
            }

            return(f.getBytes());
        }
Ejemplo n.º 2
0
            public byte[] Rebuild()
            {
                FileOutput f = new FileOutput();

                f.Endian = Endianness.Big;

                f.writeInt(names.Count);
                foreach (string name in names)
                {
                    f.writeShort(name.Length);
                    f.writeString(name);
                }

                return(f.getBytes());
            }