package net.alphadev.usbstorage.api;

/**
 * Represents a payload that is transmitted between an USB device and its driver.
 *
 * @author Jan Seeger <jan@alphadev.net>
 */
public interface Transmittable {
    /**
     * Returns the payload data as byte array.
     *
     * @return payload data
     */
    byte[] asBytes();

    /**
     * Returns the payload size.
     *
     * @return payload size
     */
    int getExpectedAnswerLength();
}

package net.alphadev.usbstorage.api;

/**
 * Represents a payload that is transmitted between an USB device and its driver.
 *
 * @author Jan Seeger <jan@alphadev.net>
 */
public interface Transmittable {
    /**
     * Returns the payload data as byte array.
     *
     * @return payload data
     */
    byte[] asBytes();

    /**
     * Returns the payload size as bytes.
     *
     * @return payload size
     */
    int getExpectedAnswerLength();
}

clarify unit in interface description.