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

Method encode

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

Source from the content-addressed store, hash-verified

550 return self
551
552 def encode(self):
553 pieces = list()
554 assert isinstance(self.channel_id, str_or_bytes),\
555 'A non-string value was supplied for self.channel_id'
556 value = as_bytes(self.channel_id)
557 pieces.append(struct.pack('>I', len(value)))
558 pieces.append(value)
559 return pieces
560
561 class Flow(amqp_object.Method):
562

Callers

nothing calls this directly

Calls 1

as_bytesFunction · 0.90

Tested by

no test coverage detected