-
Notifications
You must be signed in to change notification settings - Fork 232
/
uamqp.message.DataBody.yml
47 lines (44 loc) · 1.14 KB
/
uamqp.message.DataBody.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
### YamlMime:PythonClass
uid: uamqp.message.DataBody
name: DataBody
fullName: uamqp.message.DataBody
module: uamqp.message
inheritances:
- uamqp.message.MessageBody
summary: 'An AMQP message body of type Data. This represents
a list of bytes sections.'
constructor:
syntax: DataBody(c_message, encoding='UTF-8')
parameters:
- name: c_message
isRequired: true
- name: encoding
defaultValue: UTF-8
variables:
- description: The body type. This should always be *DataType*.
name: type
types:
- <xref:uamqp.c_uamqp.MessageBodyType>
- description: 'The data contained in the message body. This returns
a generator to iterate over each section in the body, where
each section will be a byte string.'
name: data
types:
- <xref:typing.Generator>[<xref:bytes>]
methods:
- uid: uamqp.message.DataBody.append
name: append
summary: Append a section to the body.
signature: append(data)
parameters:
- name: data
description: The data to append.
isRequired: true
types:
- <xref:str>
- <xref:bytes>
attributes:
- uid: uamqp.message.DataBody.data
name: data
- uid: uamqp.message.DataBody.type
name: type