File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5050 )
5151
5252 (cond
53- (<= n 127 ) (.writeByte out n) ; +fixnum
54- (<= n 0xff ) (do (.writeByte out 0xcc ) (.writeByte out n)) ; uint8
55- (<= n 0xffff ) (do (.writeByte out 0xcd ) (.writeShort out n)) ; uint16
56- (<= n 0xffffffff ) (do (.writeByte out 0xce ) (.writeInt out (unchecked-int n))) ; uint32
57- :else (do (.writeByte out 0xcf ) (.writeLong out (unchecked-long n))) ; uint64
53+ (<= n 127 ) (.writeByte out n) ; +fixnum
54+ (<= n 0xff ) (do (.writeByte out 0xcc ) (.writeByte out n)) ; uint8
55+ (<= n 0xffff ) (do (.writeByte out 0xcd ) (.writeShort out n)) ; uint16
56+ (<= n 0xffffffff ) (do (.writeByte out 0xce ) (.writeInt out (unchecked-int n))) ; uint32
57+ (<= n 0x7fffffffffffffff ) (do (.writeByte out 0xd3 ) (.writeLong out n)) ; int64 if possible
58+ :else (do (.writeByte out 0xcf ) (.writeLong out (unchecked-long n))) ; uint64
5859 )))
5960
6061(defn- pack-coll [c ^DataOutput out] (reduce (fn [_ el] (pack-bytes el out)) nil c))
You can’t perform that action at this time.
0 commit comments