Searched refs:desiredCapacity (Results 1 – 3 of 3) sorted by relevance
28 int32_t desiredCapacity = s16Length - i; in appendChange() local29 if (desiredCapacity < (INT32_MAX / 3)) { in appendChange()30 desiredCapacity *= 3; // max 3 UTF-8 bytes per UTF-16 code unit in appendChange()31 } else if (desiredCapacity < (INT32_MAX / 2)) { in appendChange()32 desiredCapacity *= 2; in appendChange()34 desiredCapacity = INT32_MAX; in appendChange()36 char *buffer = sink.GetAppendBuffer(U8_MAX_LENGTH, desiredCapacity, in appendChange()
137 …ate static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapacity) { in ensureAppendCapacity() argument140 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()141 sink.ensureCapacity(sink.size + desiredCapacity); in ensureAppendCapacity()
136 …ate static void ensureAppendCapacity(ByteArrayWrapper sink, int minCapacity, int desiredCapacity) { in ensureAppendCapacity() argument139 if (desiredCapacity < minCapacity) { desiredCapacity = minCapacity; } in ensureAppendCapacity()140 sink.ensureCapacity(sink.size + desiredCapacity); in ensureAppendCapacity()