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

Method decode

pager_lib/smb/smb2_structs.py:493–496  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

491 STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT)
492
493 def decode(self, message):
494 assert message.command == SMB2_COM_WRITE
495 if message.status == 0:
496 struct_size, _, self.count, _, _, _ = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE])
497
498
499

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected