Package net.rubyeye.xmemcached.utils
Class FastStringEncoder
java.lang.Object
net.rubyeye.xmemcached.utils.FastStringEncoder
Fast string utf encoder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
close
(byte[] buf) static byte[]
encodeUTF8
(String s) private static byte[]
expandCapacity
(byte[] buf, int minNewCapacity) private static byte[]
getBuf
(int length)
-
Field Details
-
STEP
private static final int STEP- See Also:
-
bufLocal
-
-
Constructor Details
-
FastStringEncoder
public FastStringEncoder()
-
-
Method Details
-
getBuf
private static byte[] getBuf(int length) -
close
private static void close(byte[] buf) -
expandCapacity
private static byte[] expandCapacity(byte[] buf, int minNewCapacity) -
encodeUTF8
-