Package one.microstream.chars
Class MemoryCharConversionUTF8
- java.lang.Object
-
- one.microstream.chars.MemoryCharConversionUTF8
-
public final class MemoryCharConversionUTF8 extends Object
-
-
Constructor Summary
Constructors Constructor Description MemoryCharConversionUTF8()
-
Method Summary
Modifier and Type Method Description static boolean
isSingleByte(char c)
static int
maxCharacterLength()
static byte
toSingleByte(char c)
static byte[]
toUTF8(char... chars)
static int
utf8Length(char c)
static int
utf8Length(char... chars)
static long
writeUTF8(long address, char c)
static long
writeUTF8(long address, char... chars)
static long
writeUTF8(long address, char[] chars, int offset, int length)
static long
writeUTF8(long address, String string)
static long
writeUTF8(long address, VarString vs)
-
-
-
Method Detail
-
maxCharacterLength
public static final int maxCharacterLength()
-
isSingleByte
public static final boolean isSingleByte(char c)
-
toSingleByte
public static final byte toSingleByte(char c)
-
utf8Length
public static final int utf8Length(char c)
-
utf8Length
public static final int utf8Length(char... chars)
-
toUTF8
public static final byte[] toUTF8(char... chars)
-
writeUTF8
public static final long writeUTF8(long address, char c)
-
writeUTF8
public static final long writeUTF8(long address, char... chars)
-
writeUTF8
public static final long writeUTF8(long address, char[] chars, int offset, int length)
-
writeUTF8
public static final long writeUTF8(long address, String string)
-
writeUTF8
public static final long writeUTF8(long address, VarString vs)
-
-