Interface MemoryOutputStream.OnReallocFunc

Enclosing class:
MemoryOutputStream
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 static interface MemoryOutputStream.OnReallocFunc
  • Method Summary

    Modifier and Type
    Method
    Description
    onReallocFunc(CallbackHandler __self, Pointer data, long size)
    Changes the size of the memory block pointed to by @data to
    @size bytes.
  • Method Details

    • onReallocFunc

      Pointer onReallocFunc(CallbackHandler __self, @Nullable Pointer data, long size)
      Changes the size of the memory block pointed to by @data to
      @size bytes.

      The function should have the same semantics as realloc().
      Parameters:
      data - memory block to reallocate
      size - size to reallocate @data to
      Returns:
      a pointer to the reallocated memory