Package overrungl.nfd

Class NFDNFilterItem

All Implemented Interfaces:
Addressable
Direct Known Subclasses:
NFDNFilterItem.Buffer

public class NFDNFilterItem extends Struct
NFDNFilterItem relies on preview features of the Java platform:
Programs can only use NFDNFilterItem when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.

Layout


 struct nfdnfilteritem_t {
     const nfdnchar_t* name;
     const nfdnchar_t* spec;
 }
Since:
0.1.0
Author:
squid233
  • Field Details

  • Constructor Details

    • NFDNFilterItem

      public NFDNFilterItem(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator)
      Create a NFDNFilterItem instance.
      Parameters:
      address - the address.
      allocator - the allocator of this address.
    • NFDNFilterItem

      protected NFDNFilterItem(MemorySegmentPREVIEW address, SegmentAllocatorPREVIEW allocator, MemoryLayoutPREVIEW layout)
      Creates a struct instance with the given memory layout.
      Parameters:
      address - the address.
      allocator - the allocator of this address.
      layout - the memory layout of this struct.
  • Method Details

    • create

      public static NFDNFilterItem create(SegmentAllocatorPREVIEW allocator, String name, String spec)
      Creates a NFDNFilterItem instance with the given allocator.
      Parameters:
      allocator - the allocator
      name - the name of the filter
      spec - the specification of the filter
      Returns:
      the instance
    • create

      @SafeVarargs public static NFDNFilterItem.Buffer create(SegmentAllocatorPREVIEW allocator, Pair<String>... items)
      Creates a NFDNFilterItem.Buffer instance with the given allocator and items.
      Parameters:
      allocator - the allocator
      items - the items
      Returns:
      the instance
    • nname

      public MemorySegmentPREVIEW nname()
      Returns the name of the filter.
      Returns:
      the name of the filter
    • name

      public String name()
      Returns the name of the filter.
      Returns:
      the name of the filter
      See Also:
    • nspec

      public MemorySegmentPREVIEW nspec()
      Returns the spec of the filter.
      Returns:
      the spec of the filter
    • spec

      public String spec()
      Returns the spec of the filter.
      Returns:
      the spec of the filter
      See Also: