function parseHeader(buffer) {
    const bytebuf = ByteBuffer.wrap(buffer, true);
    return parseHeaderBytebuf(bytebuf);
}
Parses a demo file header from the buffer.
@param {ArrayBuffer} buffer - Buffer of the demo header
@returns {IDemoHeader} Header object