Interface BGFXCacheReadCallbackI

  • All Superinterfaces:
    CallbackI, CallbackI.Z, Pointer
    All Known Implementing Classes:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface BGFXCacheReadCallbackI
    extends CallbackI.Z
    Reads cached item.


     bool (*) (
         bgfx_callback_interface_t *_this,
         uint64_t _id,
         void *_data,
         uint32_t _size
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        the dyncall signature
      • callback

        default boolean callback​(long args)
        Description copied from interface: CallbackI.Z
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.Z
        args - pointer to a DCArgs iterator
        the value to store to the result DCValue
      • invoke

        boolean invoke​(long _this,
                       long _id,
                       long _data,
                       int _size)
        Will be called to read a cached item.
        _this - the callback interface
        _id - cache id
        _data - buffer where to read data
        _size - size of data to read
        true if data is read