summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/elf/SectionArmAttributes.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-20 17:43:34 +0100
committerSven Gothel <[email protected]>2014-02-20 17:43:34 +0100
commit8022ae51a072f5198409d3c81d9979456676d0cf (patch)
treee83af30dc86898b8243de1c686c4d5619a931971 /src/java/jogamp/common/os/elf/SectionArmAttributes.java
parentd4d337be925a28b8701ac335c2b5cc6e390cabc9 (diff)
Bug 980: Use Bitsream class for jogamp.common.os.elf.**
Diffstat (limited to 'src/java/jogamp/common/os/elf/SectionArmAttributes.java')
-rw-r--r--src/java/jogamp/common/os/elf/SectionArmAttributes.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/jogamp/common/os/elf/SectionArmAttributes.java b/src/java/jogamp/common/os/elf/SectionArmAttributes.java
index 249b2e3..db6710a 100644
--- a/src/java/jogamp/common/os/elf/SectionArmAttributes.java
+++ b/src/java/jogamp/common/os/elf/SectionArmAttributes.java
@@ -1,13 +1,14 @@
package jogamp.common.os.elf;
import static jogamp.common.os.elf.IOUtils.toHexString;
-import static jogamp.common.os.elf.IOUtils.checkBounds;
import static jogamp.common.os.elf.IOUtils.readUInt32;
import static jogamp.common.os.elf.IOUtils.getString;
import java.util.ArrayList;
import java.util.List;
+import com.jogamp.common.util.Bitstream;
+
/**
* ARM EABI attributes within section header {@link SectionHeader#SHT_ARM_ATTRIBUTES}.
* <p>
@@ -215,7 +216,7 @@ public class SectionArmAttributes extends Section {
* @throws IllegalArgumentException if section parsing failed, i.e. incompatible version or data.
*/
static List<VendorAttributes> parse(final byte[] in, final int offset, final int remaining) throws IndexOutOfBoundsException, IllegalArgumentException {
- checkBounds(in, offset, remaining);
+ Bitstream.checkBounds(in, offset, remaining);
int i = offset;
if( FORMAT_VERSION_A != in[ i ] ) {
throw new IllegalArgumentException("ShArmAttr: Not version A, but: "+toHexString(in[i]));
@@ -268,7 +269,7 @@ public class SectionArmAttributes extends Section {
* @throws IllegalArgumentException if section parsing failed, i.e. incompatible version or data.
*/
static void parseSub(final byte[] in, final int offset, final int remaining, int[] offset_post, List<Attribute> attributes) throws IndexOutOfBoundsException, IllegalArgumentException {
- checkBounds(in, offset, remaining);
+ Bitstream.checkBounds(in, offset, remaining);
// Starts w/ sub-section Tag
int i = offset;