# uproot.deserialization.read_object_any

Defined in [uproot.deserialization](https://github.com/scikit-hep/uproot/blob/f1299d71fa4f435b1901386346c8a42adbd72642/src/uproot/deserialization.py) on [line 194](https://github.com/scikit-hep/uproot/blob/f1299d71fa4f435b1901386346c8a42adbd72642/src/uproot/deserialization.py#L194).

### uproot.deserialization.read_object_any(chunk, cursor, context, file, selffile, parent, as_class=None)

* **Parameters:**
  * **chunk** ([uproot.source.chunk.Chunk](uproot.source.chunk.Chunk.html.md)) – Buffer of contiguous data
    from the file [uproot.source.chunk.Source](uproot.source.chunk.Source.html.md).
  * **cursor** ([uproot.Cursor](uproot.source.cursor.Cursor.html.md)) – Current position in
    that `chunk`.
  * **context** (*dict*) – Auxiliary data used in deserialization.
  * **file** ([uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md)) – File to use to generate
    [uproot.Model](uproot.model.Model.html.md) classes as needed from its
    [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers) and `file_path`
    for error messages.
  * **selffile** ([uproot.reading.CommonFileMethods](uproot.reading.CommonFileMethods.html.md)) – A possibly
    [uproot.reading.DetachedFile](uproot.reading.DetachedFile.html.md) associated with the `parent`.
  * **parent** (*None* *or* *calling object*) – The previous `read` in the
    recursive descent.
  * **as_class** (None or [uproot.Model](uproot.model.Model.html.md)) – If None, use the class
    indicated in the byte stream; otherwise, use this class.

Generic read function, which may deliver an instance of any class and may
reference previously read objects.

This function is the reason why [uproot.Cursor](uproot.source.cursor.Cursor.html.md) has a
[refs](uproot.source.cursor.Cursor.html.md#uproot-source-cursor-cursor-refs); that dictionary holds previously
read objects that might need to be accessed later.

The [uproot.Cursor](uproot.source.cursor.Cursor.html.md) has an
[origin](uproot.source.cursor.Cursor.html.md#uproot-source-cursor-cursor-origin) to account for the fact that
seek positions for keys in the reference dict are relative to the start of
the [uproot.source.chunk.Chunk](uproot.source.chunk.Chunk.html.md), rather than the start of the file
(as it would have to be for decompressed chunks).
