Schnittstelle Allocator.OnMemoryShareFunction

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

@FunctionalInterface public static interface Allocator.OnMemoryShareFunction
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    onMemoryShareFunction(CallbackHandler __self, Memory mem, long offset, long size)
    Share @size bytes from @mem starting at @offset and return them wrapped in a
    new GstMemory object.
  • Methodendetails

    • onMemoryShareFunction

      Memory onMemoryShareFunction(CallbackHandler __self, @Nonnull Memory mem, long offset, long size)
      Share @size bytes from @mem starting at @offset and return them wrapped in a
      new GstMemory object. If @size is set to -1, all bytes starting at @offset are
      shared. This function does not make a copy of the bytes in @mem.
      Parameter:
      mem - a #GstMemory
      offset - an offset
      size - a size or -1
      Gibt zurück:
      a new #GstMemory object sharing the requested region in @mem.