public class SIDEndian extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SID_WORDS
SID_WORDS_LITTLEENDIAN or SID_WORDS_BIGENDIAN
|
static int |
SID_WORDS_BIGENDIAN
byte-order: HIHI..3210..LO
|
static int |
SID_WORDS_LITTLEENDIAN
byte-order: LO..0123..HIHI
|
| Constructor and Description |
|---|
SIDEndian() |
| Modifier and Type | Method and Description |
|---|---|
static void |
endian_16(char[] ptr,
int pos,
int word) |
static void |
endian_16(short[] ptr,
int pos,
int word)
Convert high-byte and low-byte to 16-bit little endian word.
|
static int |
endian_16(short hi,
short lo)
Convert high-byte and low-byte to 16-bit word.
|
static short |
endian_16hi8(int word)
Get the hi byte (8 bit) in a word (16 bit)
|
static int |
endian_16hi8(int word,
short thebyte)
Set the hi byte (8 bit) in a word (16 bit)
|
static short |
endian_16lo8(int word)
Get the lo byte (8 bit) in a word (16 bit)
|
static int |
endian_16lo8(int word,
short thebyte)
Set the lo byte (8 bit) in a word (16 bit)
|
static int |
endian_16swap8(int word)
Swap word endian.
|
static long |
endian_32(short hihi,
short hilo,
short hi,
short lo)
Convert high-byte and low-byte to 32-bit word.
|
static int |
endian_32hi16(long dword)
Get the hi word (16bit) in a dword (32 bit)
|
static long |
endian_32hi16(long dword,
int word)
Set the hi word (16bit) in a dword (32 bit)
|
static short |
endian_32hi8(long dword)
Get the hi byte (8 bit) in a dword (32 bit)
|
static long |
endian_32hi8(long dword,
short theByte)
Set the hi byte (8 bit) in a dword (32 bit)
|
static int |
endian_32lo16(long dword)
Get the lo word (16bit) in a dword (32 bit)
|
static long |
endian_32lo16(long dword,
int word)
Set the lo word (16bit) in a dword (32 bit)
|
static short |
endian_32lo8(long dword)
Get the lo byte (8 bit) in a dword (32 bit)
|
static long |
endian_32lo8(long dword,
short theByte)
Set the lo byte (8 bit) in a dword (32 bit)
|
static long |
endian_32swap16(long dword)
Swap hi and lo words endian in 32 bit dword.
|
static long |
endian_32swap8(long dword)
Swap word endian.
|
static int |
endian_big16(short[] ptr,
int pos)
Convert high-byte and low-byte to 16-bit big endian word.
|
static void |
endian_big16(short[] ptr,
int pos,
int word)
Write a big-endian 16-bit word to two bytes in memory.
|
static long |
endian_big32(short[] ptr,
int pos)
Convert high-byte and low-byte to 32-bit big endian word.
|
static void |
endian_big32(short[] ptr,
int pos,
long dword)
Write a big-endian 32-bit word to four bytes in memory.
|
static int |
endian_little16(short[] ptr,
int pos)
Convert high-byte and low-byte to 16-bit little endian word.
|
static void |
endian_little16(short[] ptr,
int pos,
int word)
Write a little-endian 16-bit word to two bytes in memory.
|
static long |
endian_little32(short[] ptr,
int pos)
Convert high-byte and low-byte to 32-bit little endian word.
|
static void |
endian_little32(short[] ptr,
int pos,
long dword)
Write a little-endian 32-bit word to four bytes in memory.
|
public static final int SID_WORDS_BIGENDIAN
public static final int SID_WORDS_LITTLEENDIAN
public static final int SID_WORDS
public static final int endian_16lo8(int word,
short thebyte)
word - thebyte - public static final short endian_16lo8(int word)
word - public static final int endian_16hi8(int word,
short thebyte)
word - thebyte - public static final short endian_16hi8(int word)
word - public static final int endian_16swap8(int word)
word - public static final int endian_16(short hi,
short lo)
hi - lo - public static final void endian_16(short[] ptr,
int pos,
int word)
ptr - pos - public static final void endian_16(char[] ptr,
int pos,
int word)
public static final int endian_little16(short[] ptr,
int pos)
ptr - pos - public static final void endian_little16(short[] ptr,
int pos,
int word)
ptr - pos - word - public static final int endian_big16(short[] ptr,
int pos)
ptr - public static final void endian_big16(short[] ptr,
int pos,
int word)
ptr - pos - word - public static final long endian_32lo16(long dword,
int word)
dword - word - public static final int endian_32lo16(long dword)
dword - public static final long endian_32hi16(long dword,
int word)
dword - word - public static final int endian_32hi16(long dword)
dword - public static final long endian_32lo8(long dword,
short theByte)
dword - theByte - public static final short endian_32lo8(long dword)
dword - public static final long endian_32hi8(long dword,
short theByte)
dword - theByte - public static final short endian_32hi8(long dword)
dword - public static final long endian_32swap16(long dword)
dword - public static final long endian_32swap8(long dword)
dword - public static final long endian_32(short hihi,
short hilo,
short hi,
short lo)
hihi - hilo - hi - lo - public static final long endian_little32(short[] ptr,
int pos)
ptr - pos - public static final void endian_little32(short[] ptr,
int pos,
long dword)
ptr - pos - dword - public static final long endian_big32(short[] ptr,
int pos)
ptr - pos - public static final void endian_big32(short[] ptr,
int pos,
long dword)
ptr - pos - dword - Copyright © 2014. All rights reserved.