titus.P.Fixed

class titus.P.Fixed(size, fullName=None)[source]

Bases: titus.P.Pattern

Matches titus.datatype.AvroFixed with a given size and an optional name.

Note: not used for any PFA patterns, and probably shouldn’t be, even in the future. titus.P.WildFixed is used instead.

__init__(size, fullName=None)
Parameters:
  • size (positive integer) – width of the fixed-width byte array
  • fullName (string or None) – optional name of the fixed pattern (if not provided, fixed types of any name would match)
fullName
size