com.ibm.layout

Class Location

  • java.lang.Object
    • com.ibm.layout.Location


  • public class Location
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean checkDataFits(long dataLength)
      Check if there is enough space in the location to overlay a layout.
      byte[] getData()
      Return array that stores the data of the layout bound to it in bytes.
      long getOffset()
      Return the offset of the location at which memory is allocated.
      • Methods inherited from class java.lang.Object

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

      • Location

        public Location(byte[] data)
      • Location

        public Location(Location loc,
                        long offset)
      • Location

        public Location(long addr)
    • Method Detail

      • checkDataFits

        public boolean checkDataFits(long dataLength)
        Check if there is enough space in the location to overlay a layout.
        Parameters:
        datalength - of the layout to be overlaid.
        Returns:
        True if there is enough space, false otherwise.
      • getData

        public byte[] getData()
        Return array that stores the data of the layout bound to it in bytes.
        Returns:
        array that stores the data of the layout bound to it in bytes.
      • getOffset

        public long getOffset()
        Return the offset of the location at which memory is allocated.
        Returns:
        offset.
Technology preview - internal use for evaluation purposes only
© Copyright 2014, 2015 IBM Corporation.