MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

pager_lib/smb/smb_structs.py:1323–1334  ·  view source on GitHub ↗
(self, function, max_params_count, max_data_count, max_setup_count,
                 total_params_count = 0, total_data_count = 0,
                 params_bytes = b'', setup_bytes = b'', data_bytes = b'')

Source from the content-addressed store, hash-verified

1321 PAYLOAD_STRUCT_SIZE = struct.calcsize(PAYLOAD_STRUCT_FORMAT)
1322
1323 def __init__(self, function, max_params_count, max_data_count, max_setup_count,
1324 total_params_count = 0, total_data_count = 0,
1325 params_bytes = b'', setup_bytes = b'', data_bytes = b''):
1326 self.function = function
1327 self.total_params_count = total_params_count or len(params_bytes)
1328 self.total_data_count = total_data_count or len(data_bytes)
1329 self.max_params_count = max_params_count
1330 self.max_data_count = max_data_count
1331 self.max_setup_count = max_setup_count
1332 self.params_bytes = params_bytes
1333 self.setup_bytes = setup_bytes
1334 self.data_bytes = data_bytes
1335
1336 def initMessage(self, message):
1337 Payload.initMessage(self, message)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected