রেন্ডারস্ক্রিপ্ট ইনপুট/আউটপুট ফাংশন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ওভারভিউ
এই ফাংশন ব্যবহার করা হয়:
- জাভা ক্লায়েন্টকে তথ্য পাঠান, এবং
- প্রক্রিয়াকৃত বরাদ্দ পাঠান বা প্রক্রিয়া করার জন্য পরবর্তী বরাদ্দ গ্রহণ করুন।
সারসংক্ষেপ
ফাংশন
rsAllocationIoReceive : সারি থেকে নতুন বিষয়বস্তু গ্রহণ করুন
সারি থেকে বিষয়বস্তুর একটি নতুন সেট পান।
এই ফাংশনটি কার্নেলের ভিতর থেকে বা কার্নেল থেকে প্রত্যক্ষ বা পরোক্ষভাবে কল করা যেতে পারে এমন কোনও ফাংশন থেকে কল করা উচিত নয়। এটি করার ফলে রানটাইম ত্রুটি হবে।
rsAllocationIoSend : সারিতে নতুন কন্টেন্ট পাঠান
বরাদ্দের বিষয়বস্তু সারিতে পাঠান।
এই ফাংশনটি কার্নেলের ভিতর থেকে বা কার্নেল থেকে প্রত্যক্ষ বা পরোক্ষভাবে কল করা যেতে পারে এমন কোনও ফাংশন থেকে কল করা উচিত নয়। এটি করার ফলে রানটাইম ত্রুটি হবে।
bool rsSendToClient(int cmdID); | |
bool rsSendToClient(int cmdID, const void* data, uint len); | |
পরামিতি
cmdID | |
---|
তথ্য | অ্যাপ্লিকেশন নির্দিষ্ট তথ্য. |
---|
len | বাইটে ডেটার দৈর্ঘ্য। |
---|
ক্লায়েন্টকে ফেরত একটি বার্তা পাঠায়। এই কল ব্লক না. বার্তা পাঠানো হলে এটি সত্য এবং বার্তা সারি পূর্ণ হলে মিথ্যা ফেরত দেয়।
একটি বার্তা আইডি প্রয়োজন. ডেটা পেলোড ঐচ্ছিক।
RenderScript.RSMessageHandler দেখুন।
void rsSendToClientBlocking(int cmdID); | |
void rsSendToClientBlocking(int cmdID, const void* data, uint len); | |
পরামিতি
cmdID | |
---|
তথ্য | অ্যাপ্লিকেশন নির্দিষ্ট তথ্য. |
---|
len | বাইটে ডেটার দৈর্ঘ্য। |
---|
ক্লায়েন্টকে ফেরত একটি বার্তা পাঠায়। এই বার্তাটির জন্য বার্তা সারিতে জায়গা না থাকা পর্যন্ত এই ফাংশনটি ব্লক করবে। ক্লায়েন্ট দ্বারা বার্তা বিতরণ এবং প্রক্রিয়া করার আগে এই ফাংশনটি ফিরে আসতে পারে।
একটি বার্তা আইডি প্রয়োজন. ডেটা পেলোড ঐচ্ছিক।
RenderScript.RSMessageHandler দেখুন।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# RenderScript Input/Output Functions\n\nOverview\n--------\n\nThese functions are used to:\n\n- Send information to the Java client, and\n- Send the processed allocation or receive the next allocation to process.\n\n\u003cbr /\u003e\n\nSummary\n-------\n\n| Functions ||\n|--------------------------------------------------------------------------------------------------------|--------------------------------------------|\n| [rsAllocationIoReceive](/guide/topics/renderscript/reference/rs_io#android_rs:rsAllocationIoReceive) | Receive new content from the queue |\n| [rsAllocationIoSend](/guide/topics/renderscript/reference/rs_io#android_rs:rsAllocationIoSend) | Send new content to the queue |\n| [rsSendToClient](/guide/topics/renderscript/reference/rs_io#android_rs:rsSendToClient) | Send a message to the client, non-blocking |\n| [rsSendToClientBlocking](/guide/topics/renderscript/reference/rs_io#android_rs:rsSendToClientBlocking) | Send a message to the client, blocking |\n\nFunctions\n---------\n\n#### rsAllocationIoReceive\n: Receive new content from the queue\n\n|-------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| void rsAllocationIoReceive([rs_allocation](/guide/topics/renderscript/reference/rs_object_types#android_rs:rs_allocation) a); | Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) |\n\n##### Parameters\n\n| a | Allocation to work on. |\n|---|------------------------|\n\nReceive a new set of contents from the queue.\n\nThis function should not be called from inside a kernel, or from any function\nthat may be called directly or indirectly from a kernel. Doing so would cause a\nruntime error. \n\n#### rsAllocationIoSend\n: Send new content to the queue\n\n|----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| void rsAllocationIoSend([rs_allocation](/guide/topics/renderscript/reference/rs_object_types#android_rs:rs_allocation) a); | Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) |\n\n##### Parameters\n\n| a | Allocation to work on. |\n|---|------------------------|\n\nSend the contents of the Allocation to the queue.\n\nThis function should not be called from inside a kernel, or from any function\nthat may be called directly or indirectly from a kernel. Doing so would cause a\nruntime error. \n\n#### rsSendToClient\n: Send a message to the client, non-blocking\n\n|-------------------------------------------------------------------------------------------------------------------------------------|---|\n| bool rsSendToClient(int cmdID); | |\n| bool rsSendToClient(int cmdID, const void\\* data, [uint](/guide/topics/renderscript/reference/rs_value_types#android_rs:uint) len); | |\n\n##### Parameters\n\n| cmdID | |\n| data | Application specific data. |\n| len | Length of the data, in bytes. |\n|-------|-------------------------------|\n\nSends a message back to the client. This call does not block.\nIt returns true if the message was sent and false if the\nmessage queue is full.\n\nA message ID is required. The data payload is optional.\n\nSee [RenderScript.RSMessageHandler](https://developer.android.com/reference/android/renderscript/RenderScript.RSMessageHandler.html). \n\n#### rsSendToClientBlocking\n: Send a message to the client, blocking\n\n|---------------------------------------------------------------------------------------------------------------------------------------------|---|\n| void rsSendToClientBlocking(int cmdID); | |\n| void rsSendToClientBlocking(int cmdID, const void\\* data, [uint](/guide/topics/renderscript/reference/rs_value_types#android_rs:uint) len); | |\n\n##### Parameters\n\n| cmdID | |\n| data | Application specific data. |\n| len | Length of the data, in bytes. |\n|-------|-------------------------------|\n\nSends a message back to the client. This function will block\nuntil there is room on the message queue for this message.\nThis function may return before the message was delivered and\nprocessed by the client.\n\nA message ID is required. The data payload is optional.\n\nSee [RenderScript.RSMessageHandler](https://developer.android.com/reference/android/renderscript/RenderScript.RSMessageHandler.html)."]]