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

Method decode

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

Source from the content-addressed store, hash-verified

776 STRUCTURE_SIZE = struct.calcsize(STRUCTURE_FORMAT)
777
778 def decode(self, message):
779 assert message.command == SMB2_COM_QUERY_INFO
780
781 if message.status == 0:
782 struct_size, buf_offset, self.data_length = struct.unpack(self.STRUCTURE_FORMAT, message.raw_data[SMB2Message.HEADER_SIZE:SMB2Message.HEADER_SIZE+self.STRUCTURE_SIZE])
783 self.data = message.raw_data[buf_offset:buf_offset+self.data_length]
784
785
786class SMB2SetInfoRequest(Structure):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected