Interface Cast.ReadRawDataCallback

Enclosing class:
Cast
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 Cast.ReadRawDataCallback
Callback when the raw data was retrieved from the probe.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(int result, ByteBuffer data)
    Called with the request result.
  • Method Details

    • accept

      void accept(int result, ByteBuffer data)
      Called with the request result.
      Parameters:
      result - the size in bytes of the data package or -1 if an error occurred.
      data - the raw data.