This method must be called before writing any special header data to a stream.
See File Formats and write-headers-to-file for more information.
The name string must be a unique name that can be used by a header reader to recognize the data. This method will store a value in buffer that should be passed on to end-write-header-footer-to-file.