Lines Matching defs:current

50      * Mix value length into current length
51 * @param current current length
55 static int mixLen(int current, boolean value) {
56 return checkOverflow(current + (value ? 4 : 5));
60 * Mix value length into current length
61 * @param current current length
65 static int mixLen(int current, byte value) {
66 return mixLen(current, (int)value);
70 * Mix value length into current length
71 * @param current current length
75 static int mixLen(int current, char value) {
76 return checkOverflow(current + 1);
80 * Mix value length into current length
81 * @param current current length
85 static int mixLen(int current, short value) {
86 return mixLen(current, (int)value);
90 * Mix value length into current length
91 * @param current current length
95 static int mixLen(int current, int value) {
96 return checkOverflow(current + Integer.stringSize(value));
100 * Mix value length into current length
101 * @param current current length
105 static int mixLen(int current, long value) {
106 return checkOverflow(current + Long.stringSize(value));
110 * Mix value length into current length
111 * @param current current length
115 static int mixLen(int current, String value) {
116 return checkOverflow(current + value.length());
120 * Mix coder into current coder
121 * @param current current coder
125 static byte mixCoder(byte current, char value) {
126 return (byte)(current | (StringLatin1.canEncode(value) ? 0 : 1));
130 * Mix coder into current coder
131 * @param current current coder
135 static byte mixCoder(byte current, String value) {
136 return (byte)(current | value.coder());
140 * Mix coder into current coder
141 * @param current current coder
145 static byte mixCoder(byte current, boolean value) {
147 return current;
151 * Mix coder into current coder
152 * @param current current coder
156 static byte mixCoder(byte current, byte value) {
158 return current;
162 * Mix coder into current coder
163 * @param current current coder
167 static byte mixCoder(byte current, short value) {
169 return current;
173 * Mix coder into current coder
174 * @param current current coder
178 static byte mixCoder(byte current, int value) {
180 return current;
184 * Mix coder into current coder
185 * @param current current coder
189 static byte mixCoder(byte current, long value) {
191 return current;