Class UintConverter


  • public class UintConverter
    extends java.lang.Object
    Packs a sequence of bytes representing an unsigned big-endian integer into an integer value of appropriate integer type.

    This class handles the conversion of unsigned big-endian integers of 1, 2 and 4-byte length (bytes are assumed to be 8-bit long). Integers of 1,2, 4-byte length are packed into a double.

    Since:
    OME3.0
    • Constructor Summary

      Constructors 
      Constructor Description
      UintConverter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double pack​(omero.util.ReadOnlyByteArray data, int offset, int length)
      Implemented as specified by BytesConverter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UintConverter

        public UintConverter()
    • Method Detail

      • pack

        public double pack​(omero.util.ReadOnlyByteArray data,
                           int offset,
                           int length)
        Implemented as specified by BytesConverter
        Parameters:
        data - The byte array containing the bytes to convert.
        offset - The position of the first byte making up the pixel value.
        length - The number of bytes that make up the pixel value.
        Returns:
        An object to wrap the actual numeric value.
        See Also:
        BytesConverter.pack(ReadOnlyByteArray, int, int)