com.io7m.jtensors.bytebuffered

## Class ByteBufferRanges

- java.lang.Object
- - com.io7m.jtensors.bytebuffered.ByteBufferRanges

-     public final class ByteBufferRanges
      extends Object

  Functions to check that byte offsets are not out of range for use with a `ByteBuffer` value.

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static long` | `checkByteOffset(long b)` Check that a byte offset is within the range accept by `ByteBuffer` instances.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### checkByteOffset

          public static long checkByteOffset(long b)

      Check that a byte offset is within the range accept by `ByteBuffer` instances.
      Parameters:
        `b` - The byte offset
      Returns:
        `b`, iff valid
      Throws:
        `IndexOutOfBoundsException` - On invalid offsets

Copyright © 2017 <code@io7m.com> http://io7m.com