Class UnsignedIntBuffer


  • public class UnsignedIntBuffer
    extends DataBuffer
    DataBuffer that stores unsigned ints.
    Author:
    Melissa Linkert melissa at glencoesoftware.com
    • Constructor Detail

      • UnsignedIntBuffer

        public UnsignedIntBuffer​(int[] dataArray,
                                 int size)
        Construct a new buffer of unsigned ints using the given int array.
      • UnsignedIntBuffer

        public UnsignedIntBuffer​(int[][] dataArray,
                                 int size)
        Construct a new buffer of unsigned ints using the given 2D int array.
    • Method Detail

      • getData

        public int[] getData()
      • getData

        public int[] getData​(int bank)
      • getElem

        public int getElem​(int bank,
                           int i)
        Specified by:
        getElem in class DataBuffer
      • getElemFloat

        public float getElemFloat​(int bank,
                                  int i)
        Overrides:
        getElemFloat in class DataBuffer
      • setElem

        public void setElem​(int i,
                            int val)
        Overrides:
        setElem in class DataBuffer
      • setElem

        public void setElem​(int bank,
                            int i,
                            int val)
        Specified by:
        setElem in class DataBuffer
      • setElemFloat

        public void setElemFloat​(int i,
                                 float val)
        Overrides:
        setElemFloat in class DataBuffer
      • setElemFloat

        public void setElemFloat​(int bank,
                                 int i,
                                 float val)
        Overrides:
        setElemFloat in class DataBuffer
      • setElemDouble

        public void setElemDouble​(int bank,
                                  int i,
                                  double val)
        Overrides:
        setElemDouble in class DataBuffer