MCPcopy
hub / github.com/pika/pika / encode

Method encode

pika/spec.py:188–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 return self
187
188 def encode(self):
189 pieces = list()
190 assert isinstance(self.challenge, str_or_bytes),\
191 'A non-string value was supplied for self.challenge'
192 value = as_bytes(self.challenge)
193 pieces.append(struct.pack('>I', len(value)))
194 pieces.append(value)
195 return pieces
196
197 class SecureOk(amqp_object.Method):
198

Callers

nothing calls this directly

Calls 1

as_bytesFunction · 0.90

Tested by

no test coverage detected