Class ecs_http_server_desc_t

java.lang.Object
com.github.elebras1.flecs.ecs_http_server_desc_t

public class ecs_http_server_desc_t extends Object
struct {
    ecs_http_reply_action_t callback;
    void *ctx;
    uint16_t port;
    const char *ipaddr;
    int32_t send_queue_wait_ms;
    double cache_timeout;
    double cache_purge_timeout;
}
  • Method Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • callback$layout

      public static final AddressLayout callback$layout()
      Layout for field:
      ecs_http_reply_action_t callback
      
    • callback$offset

      public static final long callback$offset()
      Offset for field:
      ecs_http_reply_action_t callback
      
    • callback

      public static MemorySegment callback(MemorySegment struct)
      Getter for field:
      ecs_http_reply_action_t callback
      
    • callback

      public static void callback(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_http_reply_action_t callback
      
    • ctx$layout

      public static final AddressLayout ctx$layout()
      Layout for field:
      void *ctx
      
    • ctx$offset

      public static final long ctx$offset()
      Offset for field:
      void *ctx
      
    • ctx

      public static MemorySegment ctx(MemorySegment struct)
      Getter for field:
      void *ctx
      
    • ctx

      public static void ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *ctx
      
    • port$layout

      public static final ValueLayout.OfShort port$layout()
      Layout for field:
      uint16_t port
      
    • port$offset

      public static final long port$offset()
      Offset for field:
      uint16_t port
      
    • port

      public static short port(MemorySegment struct)
      Getter for field:
      uint16_t port
      
    • port

      public static void port(MemorySegment struct, short fieldValue)
      Setter for field:
      uint16_t port
      
    • ipaddr$layout

      public static final AddressLayout ipaddr$layout()
      Layout for field:
      const char *ipaddr
      
    • ipaddr$offset

      public static final long ipaddr$offset()
      Offset for field:
      const char *ipaddr
      
    • ipaddr

      public static MemorySegment ipaddr(MemorySegment struct)
      Getter for field:
      const char *ipaddr
      
    • ipaddr

      public static void ipaddr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *ipaddr
      
    • send_queue_wait_ms$layout

      public static final ValueLayout.OfInt send_queue_wait_ms$layout()
      Layout for field:
      int32_t send_queue_wait_ms
      
    • send_queue_wait_ms$offset

      public static final long send_queue_wait_ms$offset()
      Offset for field:
      int32_t send_queue_wait_ms
      
    • send_queue_wait_ms

      public static int send_queue_wait_ms(MemorySegment struct)
      Getter for field:
      int32_t send_queue_wait_ms
      
    • send_queue_wait_ms

      public static void send_queue_wait_ms(MemorySegment struct, int fieldValue)
      Setter for field:
      int32_t send_queue_wait_ms
      
    • cache_timeout$layout

      public static final ValueLayout.OfDouble cache_timeout$layout()
      Layout for field:
      double cache_timeout
      
    • cache_timeout$offset

      public static final long cache_timeout$offset()
      Offset for field:
      double cache_timeout
      
    • cache_timeout

      public static double cache_timeout(MemorySegment struct)
      Getter for field:
      double cache_timeout
      
    • cache_timeout

      public static void cache_timeout(MemorySegment struct, double fieldValue)
      Setter for field:
      double cache_timeout
      
    • cache_purge_timeout$layout

      public static final ValueLayout.OfDouble cache_purge_timeout$layout()
      Layout for field:
      double cache_purge_timeout
      
    • cache_purge_timeout$offset

      public static final long cache_purge_timeout$offset()
      Offset for field:
      double cache_purge_timeout
      
    • cache_purge_timeout

      public static double cache_purge_timeout(MemorySegment struct)
      Getter for field:
      double cache_purge_timeout
      
    • cache_purge_timeout

      public static void cache_purge_timeout(MemorySegment struct, double fieldValue)
      Setter for field:
      double cache_purge_timeout
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()