# uproot.model.UnknownClassVersion

Defined in [uproot.model](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/model.py) on [line 1545](https://github.com/scikit-hep/uproot5/blob/db953cf9827349b3d24eb6742404158c1dfd5481/src/uproot/model.py#L1545).

| **Inheritance order:**                                                                                                                           |
|--------------------------------------------------------------------------------------------------------------------------------------------------|
| 1. [uproot.model.VersionedModel](uproot.model.VersionedModel.html.md)<br/>2. [uproot.Model](uproot.model.Model.html.md) |

### *class* uproot.model.UnknownClassVersion

Placeholder for a C++ class instance that has no `TStreamerInfo` in the
current [uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md) to produce one.

<a id="uproot-model-unknownclassversion-chunk"></a>

## chunk

#### UnknownClassVersion.chunk

The `chunk` of data associated with the class of unknown version,
referred to by a weak reference (to avoid memory leaks in
[uproot.model.UnknownClassVersion](uproot.model.UnknownClassVersion.html.md) objects). If the original
`chunk` has been garbage-collected, this raises `RuntimeError`.

Primarily useful in the [debug](#uproot-model-unknownclassversion-debug)
method.

<a id="uproot-model-unknownclassversion-context"></a>

## context

#### UnknownClassVersion.context

The auxiliary data used in deserialization.

Primarily useful in the [debug](uproot.model.UnknownClass.html.md#uproot-model-unknownclass-debug) method.

<a id="uproot-model-unknownclassversion-debug"></a>

## debug

#### UnknownClassVersion.debug(skip_bytes=0, limit_bytes=None, dtype=None, offset=0, stream=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)

* **Parameters:**
  * **skip_bytes** (*int*) – Number of bytes to skip before presenting the
    remainder of the [uproot.source.chunk.Chunk](uproot.source.chunk.Chunk.html.md). May be
    negative, to examine the byte stream leading up to the attempted
    instantiation. The default, `0`, starts where the number
    of bytes and version number would be (just before
    [read_numbytes_version](uproot.model.Model.html.md#uproot-model-model-read-numbytes-version)).
  * **limit_bytes** (*None* *or* *int*) – Number of bytes to limit the output to.
    A line of debugging output (without any `offset`) is 20 bytes,
    so multiples of 20 show full lines. If None, everything is
    shown to the end of the [uproot.source.chunk.Chunk](uproot.source.chunk.Chunk.html.md),
    which might be large.
  * **dtype** (None, `numpy.dtype`, or its constructor argument) – If None,
    present only the bytes as decimal values (0-255). Otherwise,
    also interpret them as an array of a given NumPy type.
  * **offset** (*int*) – Number of bytes to skip before interpreting a `dtype`;
    can be helpful if the numerical values are out of phase with
    the first byte shown. Not to be confused with `skip_bytes`,
    which determines which bytes are shown at all. Any `offset`
    values that are equivalent modulo `dtype.itemsize` show
    equivalent interpretations.
  * **stream** (object with a `write(str)` method) – Stream to write the
    debugging output to.

Presents the byte stream at the point where this instance would have been
deserialized.

Example output with `dtype=">f4"` and `offset=3`.

```default
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
123 123 123  63 140 204 205  64  12 204 205  64  83  51  51  64 140 204 205  64
  {   {   {   ? --- --- ---   @ --- --- ---   @   S   3   3   @ --- --- ---   @
                        1.1             2.2             3.3             4.4
    --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
    176   0   0  64 211  51  51  64 246 102 102  65  12 204 205  65  30 102 102  66
    --- --- ---   @ ---   3   3   @ ---   f   f   A --- --- ---   A ---   f   f   B
            5.5             6.6             7.7             8.8             9.9
    --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
    202   0   0  67  74   0   0  67 151 128   0 123 123
    --- --- ---   C   J --- ---   C --- --- ---   {   {
          101.0           202.0           303.0
```

<a id="uproot-model-unknownclassversion-debug-array"></a>

## debug_array

#### UnknownClassVersion.debug_array(skip_bytes=0, dtype=dtype('uint8'))

* **Parameters:**
  * **skip_bytes** (*int*) – Number of bytes to skip before presenting the
    remainder of the [uproot.source.chunk.Chunk](uproot.source.chunk.Chunk.html.md). May be
    negative, to examine the byte stream leading up to the attempted
    instantiation. The default, `0`, starts where the number
    of bytes and version number would be (just before
    [read_numbytes_version](uproot.model.Model.html.md#uproot-model-model-read-numbytes-version)).
  * **dtype** (`numpy.dtype` or its constructor argument) – Data type in
    which to interpret the data. (The size of the array returned is
    truncated to this `dtype.itemsize`.)

Like [debug](#uproot-model-unknownclassversion-debug), but returns a
NumPy array for further inspection.

<a id="uproot-model-unknownclassversion-classname"></a>

## classname

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.classname

The C++ (decoded) classname of the modeled class.

See uproot.model.classname_decode,
[uproot.classname_encode](uproot.model.classname_encode.html.md), and
[uproot.model.classname_version](uproot.model.classname_version.html.md).

<a id="uproot-model-unknownclassversion-encoded-classname"></a>

## encoded_classname

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.encoded_classname

The Python (encoded) classname of the modeled class. May or may not
include version.

See uproot.model.classname_decode,
[uproot.classname_encode](uproot.model.classname_encode.html.md), and
[uproot.model.classname_version](uproot.model.classname_version.html.md).

<a id="uproot-model-unknownclassversion-class-version"></a>

## class_version

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.class_version

The version number of the modeled class (int) if any; None otherwise.

See uproot.model.classname_decode,
[uproot.classname_encode](uproot.model.classname_encode.html.md), and
[uproot.model.classname_version](uproot.model.classname_version.html.md).

<a id="uproot-model-unknownclassversion-cursor"></a>

## cursor

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.cursor

A cursor pointing to the start of this instance in the byte stream
(before [read_numbytes_version](uproot.model.Model.html.md#uproot-model-model-read-numbytes-version)).

<a id="uproot-model-unknownclassversion-file"></a>

## file

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.file

A [uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md), which may be open and readable,
or a [uproot.reading.DetachedFile](uproot.reading.DetachedFile.html.md), which only contains
information about the original file (not an open file handle).

<a id="uproot-model-unknownclassversion-close"></a>

## close

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.close()

Closes the file from which this object is derived, if such a file is
still attached (i.e. not [uproot.reading.DetachedFile](uproot.reading.DetachedFile.html.md)).

<a id="uproot-model-unknownclassversion-closed"></a>

## closed

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.closed

True if the associated file is known to be closed; False if it is known
to be open. If the associated file is detached
([uproot.reading.DetachedFile](uproot.reading.DetachedFile.html.md)), then the value is None.

<a id="uproot-model-unknownclassversion-parent"></a>

## parent

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.parent

The object that was deserialized before this one in recursive descent,
usually the containing object (or the container’s container).

<a id="uproot-model-unknownclassversion-concrete"></a>

## concrete

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.concrete

The Python instance corresponding to the concrete (instantiated) class
in C++, which is `self` if this is the concrete class or another
object if this is actually a holder of superclass members for that other
object (i.e. if this object is in the other’s
[bases](uproot.model.Model.html.md#uproot-model-model-bases)).

<a id="uproot-model-unknownclassversion-members"></a>

## members

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.members

A dict of C++ member data directly associated with this class (i.e. not
its superclasses). For all members, see
[all_members](uproot.model.Model.html.md#uproot-model-model-all-members).

<a id="uproot-model-unknownclassversion-all-members"></a>

## all_members

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.all_members

A dict of C++ member data for this class and its superclasses. For only
direct members, see [members](uproot.model.Model.html.md#uproot-model-model-members).

<a id="uproot-model-unknownclassversion-has-member"></a>

## has_member

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.has_member(name, all=True)

Returns True if calling [member](uproot.model.Model.html.md#uproot-model-model-member) with the same
arguments would return a value; False if the member is missing.

<a id="uproot-model-unknownclassversion-member"></a>

## member

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.member(name, all=True, none_if_missing=False)

* **Parameters:**
  * **name** (*str*) – The name of the member datum to retrieve.
  * **all** (*bool*) – If True, recursively search all superclasses in
    [bases](uproot.model.Model.html.md#uproot-model-model-bases). Otherwise, search the
    direct class only.
  * **none_if_missing** (*bool*) – If a member datum doesn’t exist in the
    search path, `none_if_missing=True` has this function return
    None, but `none_if_missing=False` would have it raise an
    exception. Note that None is a possible value for some member
    data.

Returns a C++ member datum by name.

<a id="uproot-model-unknownclassversion-bases"></a>

## bases

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.bases

List of [uproot.Model](uproot.model.Model.html.md) objects representing superclass data
for this object in the order given in C++ (opposite method resolution
order).

* If this object has no superclasses, `bases` is empty.
* If it has one superclass, which itself might have superclasses,
  `bases` has length 1.
* Only if this object *multiply inherits* from more than one superclass
  at the same level does `bases` have length greater than 1.

Since multiple inheritance is usually avoided, `bases` rarely has
length greater than 1. A linear chain of superclasses deriving from
super-superclasses is represented by `bases` containing an object
whose `bases` contains objects.

<a id="uproot-model-unknownclassversion-base"></a>

## base

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.base(\*cls)

Extracts instances from [bases](uproot.model.Model.html.md#uproot-model-model-bases) by Python class
type.

The `cls` arguments may be Python classes or C++ classname strings to match.

<a id="uproot-model-unknownclassversion-is-instance"></a>

## is_instance

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.is_instance(\*cls)

Returns True if this object matches a given type in the C++ class hierarchy.

The `cls` arguments may be Python classes or C++ classname strings to match.

<a id="uproot-model-unknownclassversion-num-bytes"></a>

## num_bytes

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.num_bytes

Number of bytes expected in the (uncompressed) serialization of this
instance.

This value may be None (unknown before reading) or an integer.

If the value is an integer and the object exists (no exceptions in
[read](uproot.model.Model.html.md#uproot-model-model-read)), then the expected number of bytes
agreed with the actual number of bytes, and this numer is reliable.

If this object is re-serialized, it won’t necessarily occupy the same
number of bytes.

<a id="uproot-model-unknownclassversion-instance-version"></a>

## instance_version

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.instance_version

Version of this instance as read from the byte stream.

If this model is versioned ([uproot.model.VersionedModel](uproot.model.VersionedModel.html.md)), the
`instance_version` ought to be equal to the
[class_version](uproot.model.Model.html.md#uproot-model-model-class-version).

If this model is versionless, the `instance_version` contains new
information about the actual version deserialized.

<a id="uproot-model-unknownclassversion-is-memberwise"></a>

## is_memberwise

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.is_memberwise

True if the object was serialized in ROOT’s memberwise format; False
otherwise.

<a id="uproot-model-unknownclassversion-awkward-form"></a>

## awkward_form

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### *classmethod* UnknownClassVersion.awkward_form(file, context)

* **Parameters:**
  * **cls** (subclass of [uproot.Model](uproot.model.Model.html.md)) – This class.
  * **file** ([uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md)) – File to use to generate
    [uproot.Model](uproot.model.Model.html.md) classes from its
    [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers) and `file_path`
    for error messages.
  * **context** (*dict*) – Context for the Form-generation; defaults are
    the remaining arguments below.
  * **index_format** (*str*) – Format to use for indexes of the
    `awkward.forms.Form`; may be `"i32"`, `"u32"`, or
    `"i64"`.
  * **header** (*bool*) – If True, include header fields of each C++ class.
  * **tobject_header** (*bool*) – If True, include header fields of each `TObject`
    base class.
  * **breadcrumbs** (*tuple* *of* *class objects*) – Used to check for recursion.
    Types that contain themselves cannot be Awkward Arrays because the
    depth of instances is unknown.

The `awkward.forms.Form` to use to put objects of type type in an
Awkward Array.

<a id="uproot-model-unknownclassversion-strided-interpretation"></a>

## strided_interpretation

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### *classmethod* UnknownClassVersion.strided_interpretation(file, header=False, tobject_header=True, breadcrumbs=(), original=None)

* **Parameters:**
  * **cls** (subclass of [uproot.Model](uproot.model.Model.html.md)) – This class.
  * **file** ([uproot.ReadOnlyFile](uproot.reading.ReadOnlyFile.html.md)) – File to use to generate
    [uproot.Model](uproot.model.Model.html.md) classes from its
    [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers) and `file_path`
    for error messages.
  * **header** (*bool*) – If True, assume the outermost object has a header.
  * **tobject_header** (*bool*) – If True, assume that `TObjects` have headers.
  * **original** (None, [uproot.Model](uproot.model.Model.html.md), or [uproot.containers.Container](uproot.containers.Container.html.md)) – The
    original, non-strided model or container.
  * **breadcrumbs** (*tuple* *of* *class objects*) – Used to check for recursion.
    Types that contain themselves cannot be strided because the
    depth of instances is unknown.

Returns a list of (str, `numpy.dtype`) pairs to build a
[uproot.AsStridedObjects](uproot.interpretation.objects.AsStridedObjects.html.md) interpretation.

<a id="uproot-model-unknownclassversion-tojson"></a>

## tojson

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.tojson()

Serializes this object in its ROOT JSON form (as Python lists and dicts,
which can be passed to `json.dump` or `json.dumps`).

<a id="uproot-model-unknownclassversion-empty"></a>

## empty

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### *classmethod* UnknownClassVersion.empty()

Creates a model instance (of subclass `cls`) with no data; all
required attributes are None or empty.

<a id="uproot-model-unknownclassversion-read"></a>

## read

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### *classmethod* UnknownClassVersion.read(chunk, cursor, context, file, selffile, parent, concrete=None)

* **Parameters:**
  * **cls** (subclass of [uproot.Model](uproot.model.Model.html.md)) – Class to instantiate.
  * **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)) – An open file object,
    capable of generating new [uproot.Model](uproot.model.Model.html.md) classes
    from its [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers).
  * **selffile** ([uproot.reading.CommonFileMethods](uproot.reading.CommonFileMethods.html.md)) – A possibly
    [uproot.reading.DetachedFile](uproot.reading.DetachedFile.html.md) associated with this object.
  * **parent** (*None* *or* *calling object*) – The previous `read` in the
    recursive descent.
  * **concrete** (None or [uproot.Model](uproot.model.Model.html.md) instance) – If None,
    this model corresponds to the concrete (instantiated) class in
    C++. Otherwise, this model represents a superclass part of the
    object, and `concrete` points to the concrete instance.

Creates a model instance by reading data from a file.

<a id="uproot-model-unknownclassversion-read-numbytes-version"></a>

## read_numbytes_version

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.read_numbytes_version(chunk, cursor, context)

* **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.

Reads the number of bytes and instance version from the byte stream,
which is usually 6 bytes (4 + 2). Bits with special meanings are
appropriately masked out.

Some types don’t have a 6-byte header or handle it differently; in
those cases, this method should be overridden.

<a id="uproot-model-unknownclassversion-read-members"></a>

## read_members

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.read_members(chunk, cursor, context, file)

* **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)) – An open file object,
    capable of generating new [uproot.Model](uproot.model.Model.html.md) classes
    from its [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers).

Reads the member data for this class. The abstract class
[uproot.Model](uproot.model.Model.html.md) has an empty `read_members` method; this
*must* be overridden by subclasses.

<a id="uproot-model-unknownclassversion-check-numbytes"></a>

## check_numbytes

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.check_numbytes(chunk, cursor, context)

* **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.

Reads nothing; checks the expected number of bytes against the actual
movement of the `cursor` at the end of the object, possibly raising
a [uproot.DeserializationError](uproot.deserialization.DeserializationError.html.md) exception.

If [num_bytes](uproot.model.Model.html.md#uproot-model-model-num-bytes) is None, this method does
nothing.

It is *possible* that a subclass would override this method, but not
likely.

<a id="uproot-model-unknownclassversion-postprocess"></a>

## postprocess

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.postprocess(chunk, cursor, context, file)

* **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)) – An open file object,
    capable of generating new [uproot.Model](uproot.model.Model.html.md) classes
    from its [streamers](uproot.reading.ReadOnlyFile.html.md#uproot-reading-readonlyfile-streamers).

Called for any additional processing after the object has been fully
read.

The return value from this method is the object that actually represents
the ROOT data, which might be a different instance or even a different
type from this class. The default in [uproot.Model](uproot.model.Model.html.md) is to
return `self`.

Note that for versioned models,
[postprocess](uproot.model.VersionedModel.html.md#uproot-model-versionedmodel-postprocess) is called first, then
[postprocess](uproot.model.DispatchByVersion.html.md#uproot-model-dispatchbyversion-postprocess) is called on its
output, allowing a [uproot.model.DispatchByVersion](uproot.model.DispatchByVersion.html.md) to refine all
data of its type, regardless of version.

<a id="uproot-model-unknownclassversion-hook-before-read"></a>

## hook_before_read

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.hook_before_read(\*\*kwargs)

Called in [read](uproot.model.Model.html.md#uproot-model-model-read), before any data have been
read.

<a id="uproot-model-unknownclassversion-hook-before-read-members"></a>

## hook_before_read_members

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.hook_before_read_members(\*\*kwargs)

Called in [read](uproot.model.Model.html.md#uproot-model-model-read), after
[read_numbytes_version](uproot.model.Model.html.md#uproot-model-model-read-numbytes-version) and before
[read_members](uproot.model.Model.html.md#uproot-model-model-read-members).

<a id="uproot-model-unknownclassversion-hook-after-read-members"></a>

## hook_after_read_members

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.hook_after_read_members(\*\*kwargs)

Called in [read](uproot.model.Model.html.md#uproot-model-model-read), after
[read_members](uproot.model.Model.html.md#uproot-model-model-read-members) and before
[check_numbytes](uproot.model.Model.html.md#uproot-model-model-check-numbytes).

<a id="uproot-model-unknownclassversion-hook-before-postprocess"></a>

## hook_before_postprocess

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.hook_before_postprocess(\*\*kwargs)

Called in [read](uproot.model.Model.html.md#uproot-model-model-read), after
[check_numbytes](uproot.model.Model.html.md#uproot-model-model-check-numbytes) and before
[postprocess](uproot.model.Model.html.md#uproot-model-model-postprocess).

<a id="uproot-model-unknownclassversion-to-writable"></a>

## to_writable

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.to_writable()

* **Parameters:**
  **obj** ([uproot.Model](uproot.model.Model.html.md) instance of the same C++ class) – The
  object to convert to this class version.

Returns a writable version of this object or raises a NotImplementedError
if no writable version exists.

<a id="uproot-model-unknownclassversion-serialize"></a>

## serialize

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.serialize(name=None)

Serialize a object (from num_bytes and version onward) for writing into
an output ROOT file.

If a `name` is given, override the object’s current name.

This method has not been implemented on all classes (raises
NotImplementedError).

<a id="uproot-model-unknownclassversion-to-pyroot"></a>

## to_pyroot

Inherited from [uproot.Model](uproot.model.Model.html.md).

#### UnknownClassVersion.to_pyroot(name=None)

* **Parameters:**
  **name** (*str* *or* *None*) – A name for the new PyROOT object.

Converts this [uproot.Model](uproot.model.Model.html.md) into a PyROOT object *if it is writable*.
A minority of Uproot models are writable, mostly just histograms. Writability
is necessary for conversion to PyROOT because it is serialized through a
ROOT TMessage.
