def write(self, fptr):
self._write_validate()<EOL>orig_pos = fptr.tell()<EOL>fptr.write(struct.pack('<STR_LIT>', <NUM_LIT:0>, b'<STR_LIT>'))<EOL>write_buffer = struct.pack('<STR_LIT>', len(self.DR))<EOL>fptr.write(write_buffer)<EOL>for box in self.DR:<EOL><INDENT>box.write(fptr)<EOL><DEDENT>end_pos = fptr.tell()<EOL>fptr.seek(orig_pos)<EOL>fptr.write(struct.pack('<STR_LIT>', end_pos - orig_pos))<EOL>fptr.seek(end_pos)<EOL>
Write a Data Reference box to file.