Sets extra data associated with a given region. This method is not called when the whole buffer is read from a file; in such cases, the information can be read in the header or footer. See Buffer Data for more information.