File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 925
925
end-off (.readLong offsets (inc idx))]
926
926
(String. string-data start-off (- end-off start-off))))
927
927
str-ary (hamf/object-array n-elems)]
928
- (hamf/pgroups n-elems (fn [^long sidx ^long eidx]
929
- (loop [idx sidx]
930
- (when (< idx eidx)
931
- (let [start-off (.readLong offsets idx)
932
- end-off (.readLong offsets (inc idx))]
933
- (aset str-ary idx (String. string-data start-off (- end-off start-off))))
934
- (recur (inc idx))))))
928
+ (dorun
929
+ (hamf/pgroups n-elems (fn [^long sidx ^long eidx]
930
+ (loop [idx sidx]
931
+ (when (< idx eidx)
932
+ (let [start-off (.readLong offsets idx)
933
+ end-off (.readLong offsets (inc idx))]
934
+ (aset str-ary idx (String. string-data start-off (- end-off start-off))))
935
+ (recur (inc idx)))))))
935
936
(StringTable. (ham_fisted.ArrayLists/toList str-ary) nil int-data))
936
937
(= version 2 )
937
938
(let [^List int->str (dtype-list/wrap-container string-table)
Original file line number Diff line number Diff line change 37
37
^objects rv (make-array String sz)
38
38
local-int->str int->str
39
39
local-data data]
40
- (dorun
41
- (hamf/pgroups sz (fn string-table-clone [^long sidx ^long eidx]
42
- (loop [sidx sidx]
43
- (when (< sidx eidx)
44
- (ArrayHelpers/aset rv sidx (.get int->str (.getLong local-data sidx)))
45
- (recur (inc sidx)))))))
40
+ (dorun (hamf/pgroups sz (fn string-table-clone [^long sidx ^long eidx]
41
+ (loop [sidx sidx]
42
+ (when (< sidx eidx)
43
+ (ArrayHelpers/aset rv sidx (.get int->str (.getLong local-data sidx)))
44
+ (recur (inc sidx)))))))
46
45
(ArrayLists/toList rv)))
47
46
PStrTable
48
47
(get-str-table [_this] {:int->str int->str
You can’t perform that action at this time.
0 commit comments