MCPcopy Create free account
hub / github.com/kiibohd/controller / id_width_bytes

Method id_width_bytes

Output/TestOut/host.py:75–85  ·  view source on GitHub ↗

Calculate number of bytes the Id is

( self )

Source from the content-addressed store, hash-verified

73 return val
74
75 def id_width_bytes( self ):
76 '''
77 Calculate number of bytes the Id is
78 '''
79 # 16 bit Id
80 if self.id_width == 0:
81 return 2
82
83 # 32 bit Id
84 else:
85 return 4
86
87 def full_len( self ):
88 '''

Callers 1

rawio_txMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected