Class mln_resource_response

java.lang.Object
org.maplibre.nativeffi.internal.c.mln_resource_response

public class mln_resource_response extends Object
struct mln_resource_response {
    uint32_t size;
    uint32_t status;
    uint32_t error_reason;
    const uint8_t *bytes;
    size_t byte_count;
    const char *error_message;
    bool must_revalidate;
    bool has_modified;
    int64_t modified_unix_ms;
    bool has_expires;
    int64_t expires_unix_ms;
    const char *etag;
    bool has_retry_after;
    int64_t retry_after_unix_ms;
}
  • Method Details

    • layout

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

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

      public static final long size$offset()
      Offset for field:
      uint32_t size
      
    • size

      public static int size(MemorySegment struct)
      Getter for field:
      uint32_t size
      
    • size

      public static void size(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t size
      
    • status$layout

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

      public static final long status$offset()
      Offset for field:
      uint32_t status
      
    • status

      public static int status(MemorySegment struct)
      Getter for field:
      uint32_t status
      
    • status

      public static void status(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t status
      
    • error_reason$layout

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

      public static final long error_reason$offset()
      Offset for field:
      uint32_t error_reason
      
    • error_reason

      public static int error_reason(MemorySegment struct)
      Getter for field:
      uint32_t error_reason
      
    • error_reason

      public static void error_reason(MemorySegment struct, int fieldValue)
      Setter for field:
      uint32_t error_reason
      
    • bytes$layout

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

      public static final long bytes$offset()
      Offset for field:
      const uint8_t *bytes
      
    • bytes

      public static MemorySegment bytes(MemorySegment struct)
      Getter for field:
      const uint8_t *bytes
      
    • bytes

      public static void bytes(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const uint8_t *bytes
      
    • byte_count$layout

      public static final ValueLayout.OfLong byte_count$layout()
      Layout for field:
      size_t byte_count
      
    • byte_count$offset

      public static final long byte_count$offset()
      Offset for field:
      size_t byte_count
      
    • byte_count

      public static long byte_count(MemorySegment struct)
      Getter for field:
      size_t byte_count
      
    • byte_count

      public static void byte_count(MemorySegment struct, long fieldValue)
      Setter for field:
      size_t byte_count
      
    • error_message$layout

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

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

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

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

      public static final ValueLayout.OfBoolean must_revalidate$layout()
      Layout for field:
      bool must_revalidate
      
    • must_revalidate$offset

      public static final long must_revalidate$offset()
      Offset for field:
      bool must_revalidate
      
    • must_revalidate

      public static boolean must_revalidate(MemorySegment struct)
      Getter for field:
      bool must_revalidate
      
    • must_revalidate

      public static void must_revalidate(MemorySegment struct, boolean fieldValue)
      Setter for field:
      bool must_revalidate
      
    • has_modified$layout

      public static final ValueLayout.OfBoolean has_modified$layout()
      Layout for field:
      bool has_modified
      
    • has_modified$offset

      public static final long has_modified$offset()
      Offset for field:
      bool has_modified
      
    • has_modified

      public static boolean has_modified(MemorySegment struct)
      Getter for field:
      bool has_modified
      
    • has_modified

      public static void has_modified(MemorySegment struct, boolean fieldValue)
      Setter for field:
      bool has_modified
      
    • modified_unix_ms$layout

      public static final ValueLayout.OfLong modified_unix_ms$layout()
      Layout for field:
      int64_t modified_unix_ms
      
    • modified_unix_ms$offset

      public static final long modified_unix_ms$offset()
      Offset for field:
      int64_t modified_unix_ms
      
    • modified_unix_ms

      public static long modified_unix_ms(MemorySegment struct)
      Getter for field:
      int64_t modified_unix_ms
      
    • modified_unix_ms

      public static void modified_unix_ms(MemorySegment struct, long fieldValue)
      Setter for field:
      int64_t modified_unix_ms
      
    • has_expires$layout

      public static final ValueLayout.OfBoolean has_expires$layout()
      Layout for field:
      bool has_expires
      
    • has_expires$offset

      public static final long has_expires$offset()
      Offset for field:
      bool has_expires
      
    • has_expires

      public static boolean has_expires(MemorySegment struct)
      Getter for field:
      bool has_expires
      
    • has_expires

      public static void has_expires(MemorySegment struct, boolean fieldValue)
      Setter for field:
      bool has_expires
      
    • expires_unix_ms$layout

      public static final ValueLayout.OfLong expires_unix_ms$layout()
      Layout for field:
      int64_t expires_unix_ms
      
    • expires_unix_ms$offset

      public static final long expires_unix_ms$offset()
      Offset for field:
      int64_t expires_unix_ms
      
    • expires_unix_ms

      public static long expires_unix_ms(MemorySegment struct)
      Getter for field:
      int64_t expires_unix_ms
      
    • expires_unix_ms

      public static void expires_unix_ms(MemorySegment struct, long fieldValue)
      Setter for field:
      int64_t expires_unix_ms
      
    • etag$layout

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

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

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

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

      public static final ValueLayout.OfBoolean has_retry_after$layout()
      Layout for field:
      bool has_retry_after
      
    • has_retry_after$offset

      public static final long has_retry_after$offset()
      Offset for field:
      bool has_retry_after
      
    • has_retry_after

      public static boolean has_retry_after(MemorySegment struct)
      Getter for field:
      bool has_retry_after
      
    • has_retry_after

      public static void has_retry_after(MemorySegment struct, boolean fieldValue)
      Setter for field:
      bool has_retry_after
      
    • retry_after_unix_ms$layout

      public static final ValueLayout.OfLong retry_after_unix_ms$layout()
      Layout for field:
      int64_t retry_after_unix_ms
      
    • retry_after_unix_ms$offset

      public static final long retry_after_unix_ms$offset()
      Offset for field:
      int64_t retry_after_unix_ms
      
    • retry_after_unix_ms

      public static long retry_after_unix_ms(MemorySegment struct)
      Getter for field:
      int64_t retry_after_unix_ms
      
    • retry_after_unix_ms

      public static void retry_after_unix_ms(MemorySegment struct, long fieldValue)
      Setter for field:
      int64_t retry_after_unix_ms
      
    • 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()