Package ghidra.program.model.data

# Class CustomFormat

java.lang.Object
ghidra.program.model.data.CustomFormat

public class CustomFormat extends Object
Container object for a DataType and a byte array that is the format for the data type.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CustomFormat(DataType dataType, byte[] format)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte[]`
  `getBytes()`
  Get the bytes that define this format.
  `DataType`
  `getDataType()`
  Get the data type associated with this format.

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

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

- ## Constructor Details

  - ### CustomFormat

    public CustomFormat(DataType dataType, byte[] format)
    Constructor
    Parameters:
      `dataType` - data type associated with this format
      `format` - bytes that define the format

- ## Method Details

  - ### getDataType

    public DataType getDataType()
    Get the data type associated with this format.

  - ### getBytes

    public byte[] getBytes()
    Get the bytes that define this format.