Package tss.tpm

Class TPM2B_DATA

  • All Implemented Interfaces:
    TpmMarshaller

    public class TPM2B_DATA
    extends TpmStructure
    This structure is used for a data buffer that is required to be no larger than the size of the Name of an object.
    • Field Detail

      • buffer

        public byte[] buffer
    • Constructor Detail

      • TPM2B_DATA

        public TPM2B_DATA()
      • TPM2B_DATA

        public TPM2B_DATA​(byte[] _buffer)
        Parameters:
        _buffer - TBD
    • Method Detail

      • toTpm

        public byte[] toTpm()
        Deprecated.
        Returns:
        Wire (marshaled) representation of this object
      • fromBytes

        public static TPM2B_DATA fromBytes​(byte[] byteBuf)
        Static marshaling helper
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static TPM2B_DATA fromTpm​(byte[] byteBuf)
        Deprecated.
        Use fromBytes(byte[]) instead
        Parameters:
        byteBuf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • fromTpm

        public static TPM2B_DATA fromTpm​(TpmBuffer buf)
        Static marshaling helper
        Parameters:
        buf - Wire representation of the object
        Returns:
        New object constructed from its wire representation
      • toStringInternal

        public void toStringInternal​(TpmStructurePrinter _p,
                                     int d)
        Description copied from class: TpmStructure
        Serialize this object to the structure printer
        Overrides:
        toStringInternal in class TpmStructure
        Parameters:
        _p - The structure accumulator
        d - The data to serialize