Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Static Public Member Functions | Static Public Attributes | List of all members
jau.test.util.BitDemoData Class Reference
Collaboration diagram for jau.test.util.BitDemoData:

Static Public Member Functions

static final void dumpData (final String prefix, final byte[] data, final int offset, final int len)
 
static final void dumpData (final String prefix, final ByteBuffer data, final int offset, final int len)
 
static int getOneBitCount (final String pattern)
 
static String toBinaryString (final int v, final int bitCount)
 
static String toBinaryString (final long v, final int bitCount)
 
static String toHexBinaryString (final int v, final int bitCount)
 
static String toHexBinaryString (final long v, final int bitCount)
 
static String toHexBinaryString (final short v, final int bitCount)
 
static String toHexString (final int v)
 
static String toHexString (final long v)
 
static int toInteger (final String bitPattern)
 
static long toLong (final String bitPattern)
 

Static Public Attributes

static final String[] pyramid32bit_one
 
static final String strZeroPadding = "0000000000000000000000000000000000000000000000000000000000000000"
 
static final byte[] testBytesLSB = new byte[] { (byte)0x7f, (byte)0x53, (byte)0xf5, (byte)0x7b }
 
static final byte[] testBytesLSB_revByte = new byte[] { (byte)0x7b, (byte)0xf5, (byte)0x53, (byte)0x7f }
 
static final byte[] testBytesMSB = new byte[] { (byte)0xde, (byte)0xaf, (byte)0xca, (byte)0xfe }
 
static final byte[] testBytesMSB_rev = new byte[] { (byte)0xfe, (byte)0xca, (byte)0xaf, (byte)0xde }
 
static final int testIntLSB = 0x7f53f57b
 
static final int testIntLSB_revByte = 0x7bf5537f
 
static final int testIntMSB = 0xdeafcafe
 
static final int testIntMSB_rev = 0xfecaafde
 
static final String testStringLSB = testStringsLSB[0]+testStringsLSB[1]+testStringsLSB[2]+testStringsLSB[3]
 
static final String testStringLSB_revByte = testStringsLSB_revByte[0]+testStringsLSB_revByte[1]+testStringsLSB_revByte[2]+testStringsLSB_revByte[3]
 
static final String testStringMSB = testStringsMSB[0]+testStringsMSB[1]+testStringsMSB[2]+testStringsMSB[3]
 
static final String testStringMSB_rev = testStringsMSB_rev[0]+testStringsMSB_rev[1]+testStringsMSB_rev[2]+testStringsMSB_rev[3]
 
static final String[] testStringsLSB = new String[] { "01111111", "01010011", "11110101", "01111011" }
 
static final String[] testStringsLSB_revByte = new String[] { "01111011", "11110101", "01010011", "01111111" }
 
static final String[] testStringsMSB = new String[] { "11011110", "10101111", "11001010", "11111110" }
 
static final String[] testStringsMSB_rev = new String[] { "11111110", "11001010", "10101111", "11011110" }
 
static final long UNSIGNED_INT_MAX_VALUE = 0xffffffffL
 

Detailed Description

Definition at line 32 of file BitDemoData.java.

Member Function Documentation

◆ dumpData() [1/2]

static final void jau.test.util.BitDemoData.dumpData ( final String  prefix,
final byte[]  data,
final int  offset,
final int  len 
)
static

Definition at line 102 of file BitDemoData.java.

◆ dumpData() [2/2]

static final void jau.test.util.BitDemoData.dumpData ( final String  prefix,
final ByteBuffer  data,
final int  offset,
final int  len 
)
static

Definition at line 112 of file BitDemoData.java.

◆ getOneBitCount()

static int jau.test.util.BitDemoData.getOneBitCount ( final String  pattern)
static

Definition at line 123 of file BitDemoData.java.

Here is the caller graph for this function:

◆ toLong()

static long jau.test.util.BitDemoData.toLong ( final String  bitPattern)
static

Definition at line 132 of file BitDemoData.java.

◆ toInteger()

static int jau.test.util.BitDemoData.toInteger ( final String  bitPattern)
static

Definition at line 135 of file BitDemoData.java.

Here is the caller graph for this function:

◆ toHexString() [1/2]

static String jau.test.util.BitDemoData.toHexString ( final int  v)
static

Definition at line 143 of file BitDemoData.java.

Here is the caller graph for this function:

◆ toHexString() [2/2]

static String jau.test.util.BitDemoData.toHexString ( final long  v)
static

Definition at line 146 of file BitDemoData.java.

◆ toBinaryString() [1/2]

static String jau.test.util.BitDemoData.toBinaryString ( final int  v,
final int  bitCount 
)
static

Definition at line 150 of file BitDemoData.java.

Here is the caller graph for this function:

◆ toBinaryString() [2/2]

static String jau.test.util.BitDemoData.toBinaryString ( final long  v,
final int  bitCount 
)
static

Definition at line 158 of file BitDemoData.java.

◆ toHexBinaryString() [1/3]

static String jau.test.util.BitDemoData.toHexBinaryString ( final long  v,
final int  bitCount 
)
static

Definition at line 166 of file BitDemoData.java.

Here is the caller graph for this function:

◆ toHexBinaryString() [2/3]

static String jau.test.util.BitDemoData.toHexBinaryString ( final int  v,
final int  bitCount 
)
static

Definition at line 170 of file BitDemoData.java.

◆ toHexBinaryString() [3/3]

static String jau.test.util.BitDemoData.toHexBinaryString ( final short  v,
final int  bitCount 
)
static

Definition at line 174 of file BitDemoData.java.

Member Data Documentation

◆ UNSIGNED_INT_MAX_VALUE

final long jau.test.util.BitDemoData.UNSIGNED_INT_MAX_VALUE = 0xffffffffL
static

Definition at line 33 of file BitDemoData.java.

◆ pyramid32bit_one

final String [] jau.test.util.BitDemoData.pyramid32bit_one
static

Definition at line 35 of file BitDemoData.java.

◆ testBytesMSB

final byte [] jau.test.util.BitDemoData.testBytesMSB = new byte[] { (byte)0xde, (byte)0xaf, (byte)0xca, (byte)0xfe }
static

Definition at line 73 of file BitDemoData.java.

◆ testIntMSB

final int jau.test.util.BitDemoData.testIntMSB = 0xdeafcafe
static

Definition at line 74 of file BitDemoData.java.

◆ testStringsMSB

final String [] jau.test.util.BitDemoData.testStringsMSB = new String[] { "11011110", "10101111", "11001010", "11111110" }
static

Definition at line 75 of file BitDemoData.java.

◆ testStringMSB

final String jau.test.util.BitDemoData.testStringMSB = testStringsMSB[0]+testStringsMSB[1]+testStringsMSB[2]+testStringsMSB[3]
static

Definition at line 76 of file BitDemoData.java.

◆ testBytesMSB_rev

final byte [] jau.test.util.BitDemoData.testBytesMSB_rev = new byte[] { (byte)0xfe, (byte)0xca, (byte)0xaf, (byte)0xde }
static

Definition at line 81 of file BitDemoData.java.

◆ testIntMSB_rev

final int jau.test.util.BitDemoData.testIntMSB_rev = 0xfecaafde
static

Definition at line 82 of file BitDemoData.java.

◆ testStringsMSB_rev

final String [] jau.test.util.BitDemoData.testStringsMSB_rev = new String[] { "11111110", "11001010", "10101111", "11011110" }
static

Definition at line 83 of file BitDemoData.java.

◆ testStringMSB_rev

final String jau.test.util.BitDemoData.testStringMSB_rev = testStringsMSB_rev[0]+testStringsMSB_rev[1]+testStringsMSB_rev[2]+testStringsMSB_rev[3]
static

Definition at line 84 of file BitDemoData.java.

◆ testBytesLSB

final byte [] jau.test.util.BitDemoData.testBytesLSB = new byte[] { (byte)0x7f, (byte)0x53, (byte)0xf5, (byte)0x7b }
static

Definition at line 89 of file BitDemoData.java.

◆ testIntLSB

final int jau.test.util.BitDemoData.testIntLSB = 0x7f53f57b
static

Definition at line 90 of file BitDemoData.java.

◆ testStringsLSB

final String [] jau.test.util.BitDemoData.testStringsLSB = new String[] { "01111111", "01010011", "11110101", "01111011" }
static

Definition at line 91 of file BitDemoData.java.

◆ testStringLSB

final String jau.test.util.BitDemoData.testStringLSB = testStringsLSB[0]+testStringsLSB[1]+testStringsLSB[2]+testStringsLSB[3]
static

Definition at line 92 of file BitDemoData.java.

◆ testBytesLSB_revByte

final byte [] jau.test.util.BitDemoData.testBytesLSB_revByte = new byte[] { (byte)0x7b, (byte)0xf5, (byte)0x53, (byte)0x7f }
static

Definition at line 97 of file BitDemoData.java.

◆ testIntLSB_revByte

final int jau.test.util.BitDemoData.testIntLSB_revByte = 0x7bf5537f
static

Definition at line 98 of file BitDemoData.java.

◆ testStringsLSB_revByte

final String [] jau.test.util.BitDemoData.testStringsLSB_revByte = new String[] { "01111011", "11110101", "01010011", "01111111" }
static

Definition at line 99 of file BitDemoData.java.

◆ testStringLSB_revByte

final String jau.test.util.BitDemoData.testStringLSB_revByte = testStringsLSB_revByte[0]+testStringsLSB_revByte[1]+testStringsLSB_revByte[2]+testStringsLSB_revByte[3]
static

Definition at line 100 of file BitDemoData.java.

◆ strZeroPadding

final String jau.test.util.BitDemoData.strZeroPadding = "0000000000000000000000000000000000000000000000000000000000000000"
static

Definition at line 149 of file BitDemoData.java.


The documentation for this class was generated from the following file: