ইউইউডি-র কেন "8-4-4-4-12" (অঙ্কগুলি) ফর্ম্যাটে উপস্থাপন করা হয়? কারণটির জন্য আমার চারদিকে নজর ছিল কিন্তু সিদ্ধান্তটি খুঁজে পাচ্ছে না যার জন্য এটি আহ্বান জানায়।
হেক্স স্ট্রিং হিসাবে ফর্ম্যাট করা ইউইউডিউর উদাহরণ: 58D5E212-165B-4CA0-909B-C86B9CEE0111
ইউইউডি-র কেন "8-4-4-4-12" (অঙ্কগুলি) ফর্ম্যাটে উপস্থাপন করা হয়? কারণটির জন্য আমার চারদিকে নজর ছিল কিন্তু সিদ্ধান্তটি খুঁজে পাচ্ছে না যার জন্য এটি আহ্বান জানায়।
হেক্স স্ট্রিং হিসাবে ফর্ম্যাট করা ইউইউডিউর উদাহরণ: 58D5E212-165B-4CA0-909B-C86B9CEE0111
উত্তর:
এটি দ্বারা পৃথক করা হয় time, version, clock_seq_hi, clock_seq_lo, node , যেমন অনুসরণীয় আরএফসি-তে নির্দেশিত।
থেকে IETF RFC4122:
4.1.2. Layout and Byte Order
To minimize confusion about bit assignments within octets, the UUID
record definition is defined only in terms of fields that are
integral numbers of octets. The fields are presented with the most
significant one first.
Field Data Type Octet Note
#
time_low unsigned 32 0-3 The low field of the
bit integer timestamp
time_mid unsigned 16 4-5 The middle field of the
bit integer timestamp
time_hi_and_version unsigned 16 6-7 The high field of the
bit integer timestamp multiplexed
with the version number
clock_seq_hi_and_rese unsigned 8 8 The high field of the
rved bit integer clock sequence
multiplexed with the
variant
clock_seq_low unsigned 8 9 The low field of the
bit integer clock sequence
node unsigned 48 10-15 The spatially unique
bit integer node identifier
In the absence of explicit application or presentation protocol
specification to the contrary, a UUID is encoded as a 128-bit object,
as follows:
The fields are encoded as 16 octets, with the sizes and order of the
fields defined above, and with each field encoded with the Most
Significant Byte first (known as network byte order). Note that the
field names, particularly for multiplexed fields, follow historical
practice.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| time_low |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| time_mid | time_hi_and_version |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|clk_seq_hi_res | clk_seq_low | node (0-1) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| node (2-5) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
ফর্ম্যাটটি আইইটিএফ আরএফসি 4122 বিভাগে সংজ্ঞায়িত করা হয়েছে আউটপুট ফর্ম্যাটটি সংজ্ঞায়িত করা হয়েছে যেখানে এটি "ইউইউডি = ..." বলেছে
3.- নাম স্থান নিবন্ধকরণ টেম্পলেট
নেমস্পেস আইডি: ইউআইডি নিবন্ধকরণ তথ্য: নিবন্ধকরণ তারিখ: 2003-10-01
নেমস্পেসের রেজিস্ট্র্যান্ট হিসাবে ঘোষিত: জেটিসি 1 / এসসি 6 (এএসএন .১ রেপুর্টার গ্রুপ)
সিনট্যাক্টিক স্ট্রাকচারের ঘোষণা: একটি ইউইউডি একটি শনাক্তকারী যা সমস্ত ইউইউডি-র স্থানের সাথে সম্পর্কিত, স্থান এবং সময় উভয়ই অনন্য। যেহেতু একটি ইউইউডি একটি নির্দিষ্ট আকার এবং একটি সময় ক্ষেত্র ধারণ করে, মানগুলি রোলওভার করা সম্ভব (প্রায় 3400 এডি, ব্যবহৃত নির্দিষ্ট অ্যালগরিদমের উপর নির্ভর করে)। একটি ইউইউডি একটি অতি স্বল্পকালীন জীবদ্দশায় অবজেক্টগুলিকে ট্যাগ করা থেকে শুরু করে কোনও নেটওয়ার্ক জুড়ে খুব ধ্রুবক অবজেক্টগুলি সনাক্ত করতে একাধিক উদ্দেশ্যে ব্যবহার করা যেতে পারে।
The internal representation of a UUID is a specific sequence of bits in memory, as described in Section 4. To accurately represent a UUID as a URN, it is necessary to convert the bit sequence to a string representation. Each field is treated as an integer and has its value printed as a zero-filled hexadecimal digit string with the most significant digit first. The hexadecimal values "a" through "f" are output as lower case characters and are case insensitive on input. The formal definition of the UUID string representation is provided by the following ABNF [7]: UUID = time-low "-" time-mid "-" time-high-and-version "-" clock-seq-and-reserved clock-seq-low "-" node time-low = 4hexOctet time-mid = 2hexOctet time-high-and-version = 2hexOctet clock-seq-and-reserved = hexOctet clock-seq-low = hexOctet node = 6hexOctet hexOctet = hexDigit hexDigit hexDigit = "0" / "1" / "2" / "3" / "4" / "5" / "6" / "7" / "8" / "9" / "a" / "b" / "c" / "d" / "e" / "f" / "A" / "B" / "C" / "D" / "E" / "F"
"8-4-4-4-12" ফর্ম্যাটটি কেবলমাত্র মানুষের পড়ার জন্য। UUID সত্যিই একটি হয় 128-বিট সংখ্যা।
স্ট্রিং ফর্ম্যাটটি বিবেচনা করুন যখন সঞ্চিত বা স্মৃতিতে 128 বিট সংখ্যার চেয়ে দ্বিগুণ বাইট প্রয়োজন। আমি নম্বরটি অভ্যন্তরীণভাবে ব্যবহার করার পরামর্শ দেব এবং যখন এটি কোনও ইউআইতে দেখানো বা কোনও ফাইলের মধ্যে রফতানি করা দরকার তখন স্ট্রিং বিন্যাসটি ব্যবহার করুন।