Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 31 additions & 13 deletions c-api/bytearray.po
Original file line number Diff line number Diff line change
Expand Up @@ -26,112 +26,130 @@ msgstr ""

#: ../../c-api/bytearray.rst:6
msgid "Byte Array Objects"
msgstr ""
msgstr "اشیاء آرایه‌ی بایت"

#: ../../c-api/bytearray.rst:13
msgid ""
"This subtype of :c:type:`PyObject` represents a Python bytearray object."
msgstr ""
"این زیرنوع از :c:type:`PyObject` نشان‌دهنده‌ی یک شیء bytearray پایتون است."

#: ../../c-api/bytearray.rst:18
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python bytearray "
"type; it is the same object as :class:`bytearray` in the Python layer."
msgstr ""
"این نمونه از :c:type:`PyTypeObject` نشان‌دهنده‌ی نوع bytearray پایتون است؛ "
"این همان شیء‌ای است که در لایه‌ی پایتون با نام :class:`bytearray` شناخته می‌شود."

#: ../../c-api/bytearray.rst:23
msgid "Type check macros"
msgstr ""
msgstr "ماکروهای بررسی نوع"

#: ../../c-api/bytearray.rst:27
msgid ""
"Return true if the object *o* is a bytearray object or an instance of a "
"subtype of the bytearray type. This function always succeeds."
msgstr ""
"اگر شیء *o* یک شیء bytearray یا نمونه‌ای از زیرنوعی از نوع bytearray باشد، مقدار true را برمی‌گرداند. "
"این تابع همیشه با موفقیت اجرا می‌شود."

#: ../../c-api/bytearray.rst:33
msgid ""
"Return true if the object *o* is a bytearray object, but not an instance of "
"a subtype of the bytearray type. This function always succeeds."
msgstr ""
"اگر شیء *o* یک شیء bytearray باشد، اما نمونه‌ای از زیرنوعی از نوع bytearray نباشد، مقدار true را برمی‌گرداند. "
"این تابع همیشه با موفقیت اجرا می‌شود."

#: ../../c-api/bytearray.rst:38
msgid "Direct API functions"
msgstr ""
msgstr "توابع مستقیم API"

#: ../../c-api/bytearray.rst:42
msgid ""
"Return a new bytearray object from any object, *o*, that implements "
"the :ref:`buffer protocol <bufferobjects>`."
msgstr ""
"یک شیء bytearray جدید از هر شیء *o* که :ref:`پروتکل بافر <bufferobjects>` را "
"پیاده‌سازی کرده است، برمی‌گرداند."

#: ../../c-api/bytearray.rst:45 ../../c-api/bytearray.rst:56
#: ../../c-api/bytearray.rst:63
msgid "On failure, return ``NULL`` with an exception set."
msgstr ""
msgstr "در صورت شکست، مقدار ``NULL`` را با یک استثنا باز می‌گرداند."

#: ../../c-api/bytearray.rst:48 ../../c-api/bytearray.rst:66
msgid ""
"If the object implements the buffer protocol, then the buffer must not be "
"mutated while the bytearray object is being created."
msgstr ""
"اگر شیء پروتکل بافر را پیاده‌سازی کرده باشد، در حین ایجاد شیء bytearray "
"نباید بافر تغییر داده شود."

#: ../../c-api/bytearray.rst:54
msgid "Create a new bytearray object from *string* and its length, *len*."
msgstr ""
msgstr "یک شیء bytearray جدید از *string* و طول آن *len*، ایجاد کنید."

#: ../../c-api/bytearray.rst:61
msgid ""
"Concat bytearrays *a* and *b* and return a new bytearray with the result."
msgstr ""
msgstr "bytearrayهای *a* و *b* را به هم متصل کنید و یک bytearray جدید با نتیجه بازگردانید."

#: ../../c-api/bytearray.rst:72
msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
msgstr ""
msgstr "اندازهٔ *bytearray* را پس از بررسی اشاره‌گر ``NULL`` بازگردانید."

#: ../../c-api/bytearray.rst:77
msgid ""
"Return the contents of *bytearray* as a char array after checking for a "
"``NULL`` pointer. The returned array always has an extra null byte appended."
msgstr ""
"محتوای *bytearray* را پس از بررسی اشاره‌گر ``NULL`` به‌صورت یک آرایه کاراکتری (char array) بازگردانید. "
"آرایه‌ی برگشتی همیشه دارای یک بایت null اضافی در انتها است."

#: ../../c-api/bytearray.rst:82 ../../c-api/bytearray.rst:104
msgid ""
"It is not thread-safe to mutate the bytearray object while using the "
"returned char array."
msgstr ""
"زمانی که از آرایه‌ی کاراکتری برگشتی استفاده می‌شود، تغییر دادن شیء bytearray "
"ایمن از نظر ریسه‌ها نیست."

#: ../../c-api/bytearray.rst:87
msgid ""
"Resize the internal buffer of *bytearray* to *len*. Failure is a ``-1`` "
"return with an exception set."
msgstr ""
"بافر داخلی *bytearray* را به اندازه‌ی *len* تغییر اندازه دهید. در صورت شکست، مقدار ``-1`` "
"به همراه یک استثنا بازگردانده می‌شود."

#: ../../c-api/bytearray.rst:90
msgid ""
"A negative *len* will now result in an exception being set and -1 returned."
msgstr ""
"اکنون *len* منفی باعث می‌شود که یک استثنا تنظیم شده و مقدار -1 بازگردانده شود."

#: ../../c-api/bytearray.rst:95
msgid "Macros"
msgstr ""
msgstr "ماکروها"

#: ../../c-api/bytearray.rst:97
msgid "These macros trade safety for speed and they don't check pointers."
msgstr ""
msgstr "این ماکروها ایمنی را فدای سرعت می‌کنند و اشاره‌گرها را بررسی نمی‌کنند."

#: ../../c-api/bytearray.rst:101
msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
msgstr ""
msgstr "مشابه :c:func:`PyByteArray_AsString`، اما بدون بررسی خطا."

#: ../../c-api/bytearray.rst:109
msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
msgstr ""
msgstr "مشابه :c:func:`PyByteArray_Size`، اما بدون بررسی خطا."

#: ../../c-api/bytearray.rst:8
msgid "object"
msgstr ""
msgstr "شیء"

#: ../../c-api/bytearray.rst:8
msgid "bytearray"
msgstr ""
msgstr "bytearray"
Loading
Loading