1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

v1.10.2.1

This commit is contained in:
gnosygnu
2014-10-13 00:13:41 -04:00
parent cd5a440404
commit d6561b3c1f
514 changed files with 1899 additions and 1696 deletions

View File

@@ -61,7 +61,7 @@ public class Xof_repo_itm implements GfoInvkAble {
if (o == null) wnt_tmp_bfr.Add_byte(b); // regular char; add orig byte
else wnt_tmp_bfr.Add((byte[])o); // invalid char; add swap byte(s)
}
return wnt_tmp_bfr.XtoAryAndClear();
return wnt_tmp_bfr.Xto_bry_and_clear();
} private static final Bry_bfr wnt_tmp_bfr = Bry_bfr.reset_(255); private static final Btrie_slim_mgr wnt_trie = trie_make();
public static byte[] Ttl_shorten_ttl(int ttl_max, byte[] ttl, byte[] md5, Xof_ext ext) {
byte[] rv = ttl;
@@ -72,7 +72,7 @@ public class Xof_repo_itm implements GfoInvkAble {
wnt_tmp_bfr.Add(md5); // add md5; EX: "abcdefghijklmnopqrstuvwxyz0123456"
wnt_tmp_bfr.Add_byte(Byte_ascii.Dot); // add dot; EX: "."
wnt_tmp_bfr.Add(ext.Ext()); // add ext; EX: ".png"
rv = wnt_tmp_bfr.XtoAryAndClear();
rv = wnt_tmp_bfr.Xto_bry_and_clear();
}
return rv;
}
@@ -85,9 +85,9 @@ public class Xof_repo_itm implements GfoInvkAble {
if (o == null) tmp_bfr.Add_byte(b);
else tmp_bfr.Add((byte[])o);
}
byte[] rv = tmp_bfr.XtoAryAndReset(300);
byte[] rv = tmp_bfr.Xto_bry_and_clear();
return rv;
} private Bry_bfr tmp_bfr = Bry_bfr.new_(); Btrie_slim_mgr trie = trie_make();
} private Bry_bfr tmp_bfr = Bry_bfr.reset_(300); Btrie_slim_mgr trie = trie_make();
private static Btrie_slim_mgr trie_make() {
Btrie_slim_mgr rv = Btrie_slim_mgr.cs_();
byte[] invalid = Op_sys.Wnt.Fsys_invalid_chars();
@@ -107,7 +107,7 @@ public class Xof_repo_itm implements GfoInvkAble {
tmp_bfr.Add(md5); // add md5; EX: "abcdefghijklmnopqrstuvwxyz0123456"
tmp_bfr.Add_byte(Byte_ascii.Dot);
tmp_bfr.Add(ext_bry);
rv = tmp_bfr.XtoAryAndReset(300);
rv = tmp_bfr.Xto_bry_and_clear();
}
return rv;
}

View File

@@ -26,10 +26,10 @@ class Xofo_file {
public int Bits() {return bits;} private int bits;
public int Repo_id() {return repo_id;} public Xofo_file Repo_id_(int v) {this.repo_id = v; return this;} private int repo_id = -1;
public byte[] Status_msg() {return status_msg;} public Xofo_file Status_msg_(byte[] v) {status_msg = v; return this;} private byte[] status_msg = Bry_.Empty;
public int[] Thumbs() {return (int[])thumbs.XtoAry(int.class);} private OrderedHash thumbs = OrderedHash_.new_();
public int[] Thumbs() {return (int[])thumbs.Xto_ary(int.class);} private OrderedHash thumbs = OrderedHash_.new_();
public Xofo_lnki[] Links() {return lnkis;} private Xofo_lnki[] lnkis = Xofo_lnki.Ary_empty; int links_len;
public void Links_(ListAdp list) {
lnkis = (Xofo_lnki[])list.XtoAry(Xofo_lnki.class);
lnkis = (Xofo_lnki[])list.Xto_ary(Xofo_lnki.class);
links_len = lnkis.length;
list.Clear();
}