Home Reference Source Repository

src/binary_carrier.js

'use strict';

/**
 * Convenience class to use as a binary carrier.
 *
 * Any valid Object with a field named `buffer` may be used as a binary carrier;
 * this class is only one such type of object that can be used.
 */
export default class BinaryCarrier {
    constructor(binaryData) {
        this.buffer = binaryData;
    }
}