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

Method __init__

pager_lib/smb/smb_structs.py:1142–1152  ·  view source on GitHub ↗

@param timeout: If reading from a regular file, this parameter must be 0. @type timeout: int

(self, fid, offset, max_return_bytes_count, min_return_bytes_count, timeout = 0, remaining = 0)

Source from the content-addressed store, hash-verified

1140 PAYLOAD_STRUCT_SIZE = struct.calcsize(PAYLOAD_STRUCT_FORMAT)
1141
1142 def __init__(self, fid, offset, max_return_bytes_count, min_return_bytes_count, timeout = 0, remaining = 0):
1143 """
1144 @param timeout: If reading from a regular file, this parameter must be 0.
1145 @type timeout: int
1146 """
1147 self.fid = fid
1148 self.remaining = remaining
1149 self.max_return_bytes_count = max_return_bytes_count
1150 self.min_return_bytes_count = min_return_bytes_count
1151 self.offset = offset
1152 self.timeout = timeout
1153
1154 def initMessage(self, message):
1155 Payload.initMessage(self, message)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected