Interface BGFXCacheReadCallbackI

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

    @FunctionalInterface
    public interface BGFXCacheReadCallbackI
    extends CallbackI.Z
    Reads cached item.

    Type

    
     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
        Returns:
        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
        Parameters:
        args - pointer to a DCArgs iterator
        Returns:
        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.
        Parameters:
        _this - the callback interface
        _id - cache id
        _data - buffer where to read data
        _size - size of data to read
        Returns:
        true if data is read