Freeciv-3.2: generate_packets.NeedSizeType Class Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Public Member Functions | Data Fields
generate_packets.NeedSizeType Class Reference
Inheritance diagram for generate_packets.NeedSizeType:

## Public Member Functions

| __init__ (self, str dataio_type, str public_type, typing.Callable[[str, str, SizeInfo], "FieldType"] cls)
"FieldType" | array (self, SizeInfo size)
str | __str__ (self)
Public Member Functions inherited from generate_packets.RawFieldType
str | __repr__ (self)

## Data Fields

| dataio_type
| public_type
| cls

## Detailed Description

    Helper class for field types that require a size to be usable.

Definition at line 634 of file generate_packets.py.

## Constructor & Destructor Documentation

## ◆ __init__()

generate_packets.NeedSizeType.__init__ | ( |  | self,
|  | str | dataio_type,
|  | str | public_type,
|  | typing.Callable[[str, str, SizeInfo], "FieldType"] | cls
| ) |  |

Definition at line 637 of file generate_packets.py.

## Member Function Documentation

## ◆ __str__()

str generate_packets.NeedSizeType.__str__ | ( |  | self | ) |

Reimplemented from generate_packets.RawFieldType.

Definition at line 649 of file generate_packets.py.

## ◆ array()

"FieldType" generate_packets.NeedSizeType.array | ( |  | self,
|  | SizeInfo | size
| ) |  |

    Add an array size to make a useable type.

Reimplemented from generate_packets.RawFieldType.

Definition at line 645 of file generate_packets.py.

## Field Documentation

## ◆ cls

generate_packets.NeedSizeType.cls

Definition at line 642 of file generate_packets.py.

## ◆ dataio_type

generate_packets.NeedSizeType.dataio_type

Definition at line 638 of file generate_packets.py.

## ◆ public_type

generate_packets.NeedSizeType.public_type

Definition at line 640 of file generate_packets.py.