Schnittstelle MemoryOutputStream.OnReallocFunc

Umschließende Klasse:
MemoryOutputStream
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface MemoryOutputStream.OnReallocFunc
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    onReallocFunc(CallbackHandler __self, Pointer data, long size)
    Changes the size of the memory block pointed to by @data to
    @size bytes.
  • Methodendetails

    • 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().
      Parameter:
      data - memory block to reallocate
      size - size to reallocate @data to
      Gibt zurück:
      a pointer to the reallocated memory