001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.hal.simulation;
006
007/** Interface for simulation buffer callbacks. */
008@FunctionalInterface
009public interface BufferCallback {
010  /**
011   * Simulation buffer callback function.
012   *
013   * @param name Buffer name.
014   * @param buffer Buffer.
015   * @param count Buffer size.
016   */
017  void callback(String name, byte[] buffer, int count);
018}