public final class ByteOps extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
EMPTYBUF |
static long |
GIGA |
static int |
INTBYTES |
static long |
INTMASK |
static long |
KILO |
static int |
LONGBYTES |
static long |
MEGA |
static int |
SHORTMASK |
Constructor and Description |
---|
ByteOps() |
Modifier and Type | Method and Description |
---|---|
static boolean |
cmp(byte[] arr1,
byte[] arr2) |
static boolean |
cmp(byte[] arr1,
int off1,
byte[] arr2,
int off2,
int len) |
static int |
count(byte[] container,
byte[] seq) |
static int |
count(byte[] container,
int coff,
int clen,
byte[] seq,
int soff,
int slen) |
static int |
count(int val,
byte[] container) |
static int |
count(int val,
byte[] container,
int coff,
int clen) |
static int |
decodeInt(byte[] buf,
int off,
int len) |
static long |
decodeLong(byte[] buf,
int off,
int len) |
static int |
encodeInt(int intval,
byte[] buf,
int off,
int len) |
static byte[] |
encodeInt(int intval,
int len) |
static int |
encodeInt(long intval,
byte[] buf,
int off,
int len) |
static byte[] |
encodeInt(long intval,
int len) |
static StringBuilder |
expandByteSize(long size) |
static StringBuilder |
expandByteSize(long size,
StringBuilder sb,
boolean reset) |
static int |
find(byte[] container,
byte[] seq,
int soff) |
static int |
find(byte[] container,
int coff,
int clen,
byte[] seq,
int soff) |
static byte[] |
getBytes8(CharSequence str) |
static byte[] |
getBytesUTF16(char[] arr,
int off,
int len) |
static byte[] |
getBytesUTF16(char[] carr,
int coff,
int clen,
byte[] barr,
int boff) |
static byte[] |
getBytesUTF16(CharSequence str) |
static byte[] |
getBytesUTF16(CharSequence str,
int off,
int len) |
static byte[] |
getBytesUTF16(CharSequence str,
int coff,
int clen,
byte[] barr,
int boff) |
static char[] |
getCharsUTF16(byte[] arr) |
static char[] |
getCharsUTF16(byte[] arr,
int off,
int len) |
static char[] |
getCharsUTF16(byte[] barr,
int boff,
int blen,
char[] carr,
int coff) |
static int |
indexOf(byte[] container,
byte[] seq) |
static int |
indexOf(byte[] container,
int val) |
static int |
indexOf(byte[] container,
int coff,
int clen,
byte[] seq,
int soff,
int slen) |
static int |
indexOf(byte[] container,
int coff,
int clen,
int val) |
static long |
parseByteSize(CharSequence str) |
static long |
parseByteSize(CharSequence str,
int off,
int len) |
public static final long KILO
public static final long MEGA
public static final long GIGA
public static final int LONGBYTES
public static final int INTBYTES
public static final int SHORTMASK
public static final long INTMASK
public static final byte[] EMPTYBUF
public static byte[] getBytesUTF16(CharSequence str)
public static byte[] getBytesUTF16(CharSequence str, int off, int len)
public static byte[] getBytesUTF16(CharSequence str, int coff, int clen, byte[] barr, int boff)
public static byte[] getBytesUTF16(char[] arr, int off, int len)
public static byte[] getBytesUTF16(char[] carr, int coff, int clen, byte[] barr, int boff)
public static char[] getCharsUTF16(byte[] arr)
public static char[] getCharsUTF16(byte[] arr, int off, int len)
public static int count(int val, byte[] container)
public static int count(byte[] container, byte[] seq)
public static int indexOf(byte[] container, int val)
public static int indexOf(byte[] container, byte[] seq)
public static int find(byte[] container, byte[] seq, int soff)
public static StringBuilder expandByteSize(long size)
public static byte[] getBytes8(CharSequence str)
public static char[] getCharsUTF16(byte[] barr, int boff, int blen, char[] carr, int coff)
public static boolean cmp(byte[] arr1, byte[] arr2)
public static boolean cmp(byte[] arr1, int off1, byte[] arr2, int off2, int len)
public static int count(int val, byte[] container, int coff, int clen)
public static int count(byte[] container, int coff, int clen, byte[] seq, int soff, int slen)
public static int indexOf(byte[] container, int coff, int clen, int val)
public static int indexOf(byte[] container, int coff, int clen, byte[] seq, int soff, int slen)
public static int find(byte[] container, int coff, int clen, byte[] seq, int soff)
public static long decodeLong(byte[] buf, int off, int len)
public static int encodeInt(long intval, byte[] buf, int off, int len)
public static byte[] encodeInt(long intval, int len)
public static int decodeInt(byte[] buf, int off, int len)
public static int encodeInt(int intval, byte[] buf, int off, int len)
public static byte[] encodeInt(int intval, int len)
public static long parseByteSize(CharSequence str)
public static long parseByteSize(CharSequence str, int off, int len)
public static StringBuilder expandByteSize(long size, StringBuilder sb, boolean reset)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.