@@ -26,112 +26,130 @@ msgstr ""
2626
2727#: ../../c-api/bytearray.rst:6
2828msgid "Byte Array Objects"
29- msgstr ""
29+ msgstr "اشیاء آرایهی بایت "
3030
3131#: ../../c-api/bytearray.rst:13
3232msgid ""
3333"This subtype of :c:type:`PyObject` represents a Python bytearray object."
3434msgstr ""
35+ "این زیرنوع از :c:type:`PyObject` نشاندهندهی یک شیء bytearray پایتون است."
3536
3637#: ../../c-api/bytearray.rst:18
3738msgid ""
3839"This instance of :c:type:`PyTypeObject` represents the Python bytearray "
3940"type; it is the same object as :class:`bytearray` in the Python layer."
4041msgstr ""
42+ "این نمونه از :c:type:`PyTypeObject` نشاندهندهی نوع bytearray پایتون است؛ "
43+ "این همان شیءای است که در لایهی پایتون با نام :class:`bytearray` شناخته میشود."
4144
4245#: ../../c-api/bytearray.rst:23
4346msgid "Type check macros"
44- msgstr ""
47+ msgstr "ماکروهای بررسی نوع "
4548
4649#: ../../c-api/bytearray.rst:27
4750msgid ""
4851"Return true if the object *o* is a bytearray object or an instance of a "
4952"subtype of the bytearray type. This function always succeeds."
5053msgstr ""
54+ "اگر شیء *o* یک شیء bytearray یا نمونهای از زیرنوعی از نوع bytearray باشد، مقدار true را برمیگرداند. "
55+ "این تابع همیشه با موفقیت اجرا میشود."
5156
5257#: ../../c-api/bytearray.rst:33
5358msgid ""
5459"Return true if the object *o* is a bytearray object, but not an instance of "
5560"a subtype of the bytearray type. This function always succeeds."
5661msgstr ""
62+ "اگر شیء *o* یک شیء bytearray باشد، اما نمونهای از زیرنوعی از نوع bytearray نباشد، مقدار true را برمیگرداند. "
63+ "این تابع همیشه با موفقیت اجرا میشود."
5764
5865#: ../../c-api/bytearray.rst:38
5966msgid "Direct API functions"
60- msgstr ""
67+ msgstr "توابع مستقیم API "
6168
6269#: ../../c-api/bytearray.rst:42
6370msgid ""
6471"Return a new bytearray object from any object, *o*, that implements "
6572"the :ref:`buffer protocol <bufferobjects>`."
6673msgstr ""
74+ "یک شیء bytearray جدید از هر شیء *o* که :ref:`پروتکل بافر <bufferobjects>` را "
75+ "پیادهسازی کرده است، برمیگرداند."
6776
6877#: ../../c-api/bytearray.rst:45 ../../c-api/bytearray.rst:56
6978#: ../../c-api/bytearray.rst:63
7079msgid "On failure, return ``NULL`` with an exception set."
71- msgstr ""
80+ msgstr "در صورت شکست، مقدار ``NULL`` را با یک استثنا باز میگرداند. "
7281
7382#: ../../c-api/bytearray.rst:48 ../../c-api/bytearray.rst:66
7483msgid ""
7584"If the object implements the buffer protocol, then the buffer must not be "
7685"mutated while the bytearray object is being created."
7786msgstr ""
87+ "اگر شیء پروتکل بافر را پیادهسازی کرده باشد، در حین ایجاد شیء bytearray "
88+ "نباید بافر تغییر داده شود."
7889
7990#: ../../c-api/bytearray.rst:54
8091msgid "Create a new bytearray object from *string* and its length, *len*."
81- msgstr ""
92+ msgstr "یک شیء bytearray جدید از *string* و طول آن *len*، ایجاد کنید. "
8293
8394#: ../../c-api/bytearray.rst:61
8495msgid ""
8596"Concat bytearrays *a* and *b* and return a new bytearray with the result."
86- msgstr ""
97+ msgstr "bytearrayهای *a* و *b* را به هم متصل کنید و یک bytearray جدید با نتیجه بازگردانید. "
8798
8899#: ../../c-api/bytearray.rst:72
89100msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
90- msgstr ""
101+ msgstr "اندازهٔ *bytearray* را پس از بررسی اشارهگر ``NULL`` بازگردانید. "
91102
92103#: ../../c-api/bytearray.rst:77
93104msgid ""
94105"Return the contents of *bytearray* as a char array after checking for a "
95106"``NULL`` pointer. The returned array always has an extra null byte appended."
96107msgstr ""
108+ "محتوای *bytearray* را پس از بررسی اشارهگر ``NULL`` بهصورت یک آرایه کاراکتری (char array) بازگردانید. "
109+ "آرایهی برگشتی همیشه دارای یک بایت null اضافی در انتها است."
97110
98111#: ../../c-api/bytearray.rst:82 ../../c-api/bytearray.rst:104
99112msgid ""
100113"It is not thread-safe to mutate the bytearray object while using the "
101114"returned char array."
102115msgstr ""
116+ "زمانی که از آرایهی کاراکتری برگشتی استفاده میشود، تغییر دادن شیء bytearray "
117+ "ایمن از نظر ریسهها نیست."
103118
104119#: ../../c-api/bytearray.rst:87
105120msgid ""
106121"Resize the internal buffer of *bytearray* to *len*. Failure is a ``-1`` "
107122"return with an exception set."
108123msgstr ""
124+ "بافر داخلی *bytearray* را به اندازهی *len* تغییر اندازه دهید. در صورت شکست، مقدار ``-1`` "
125+ "به همراه یک استثنا بازگردانده میشود."
109126
110127#: ../../c-api/bytearray.rst:90
111128msgid ""
112129"A negative *len* will now result in an exception being set and -1 returned."
113130msgstr ""
131+ "اکنون *len* منفی باعث میشود که یک استثنا تنظیم شده و مقدار -1 بازگردانده شود."
114132
115133#: ../../c-api/bytearray.rst:95
116134msgid "Macros"
117- msgstr ""
135+ msgstr "ماکروها "
118136
119137#: ../../c-api/bytearray.rst:97
120138msgid "These macros trade safety for speed and they don't check pointers."
121- msgstr ""
139+ msgstr "این ماکروها ایمنی را فدای سرعت میکنند و اشارهگرها را بررسی نمیکنند. "
122140
123141#: ../../c-api/bytearray.rst:101
124142msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
125- msgstr ""
143+ msgstr "مشابه :c:func:`PyByteArray_AsString`، اما بدون بررسی خطا. "
126144
127145#: ../../c-api/bytearray.rst:109
128146msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
129- msgstr ""
147+ msgstr "مشابه :c:func:`PyByteArray_Size`، اما بدون بررسی خطا. "
130148
131149#: ../../c-api/bytearray.rst:8
132150msgid "object"
133- msgstr ""
151+ msgstr "شیء "
134152
135153#: ../../c-api/bytearray.rst:8
136154msgid "bytearray"
137- msgstr ""
155+ msgstr "bytearray "
0 commit comments