{"size": 413, "ext": "js", "max_stars_repo_path": "src/meta-events/end-track-event.js", "max_stars_repo_name": "boxatom/MidiWriterJS", "max_stars_repo_stars_event_min_datetime": "2016-03-22T17:13:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-27T23:12:23.000Z", "max_issues_repo_path": "src/meta-events/end-track-event.js", "max_issues_repo_name": "boxatom/MidiWriterJS", "max_issues_repo_issues_event_min_datetime": "2016-03-25T18:01:47.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-22T12:37:00.000Z", "max_forks_repo_path": "src/meta-events/end-track-event.js", "max_forks_repo_name": "boxatom/MidiWriterJS", "max_forks_repo_forks_event_min_datetime": "2016-03-22T22:04:42.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-30T11:02:47.000Z"}
{"max_stars_count": 440, "max_issues_count": 85, "max_forks_count": 64, "avg_line_length": 19.6666666667, "max_line_length": 56, "alphanum_fraction": 0.6997578692}
import {Constants} from '../constants';
import {Utils} from '../utils';

/**
 * Object representation of a end track meta event.
 * @return {EndTrackEvent}
 */
class EndTrackEvent {
	constructor() {
		this.type = 'end-track';

		// Start with zero time delta
		this.data = Utils.numberToVariableLength(0x00).concat(
			Constants.META_EVENT_ID,
			Constants.META_END_OF_TRACK_ID
		);
	}
}

export {EndTrackEvent};
