Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer:scriptsamples:guidtostring [2015/09/14]
127.0.0.1 external edit
developer:scriptsamples:guidtostring [2015/12/02] (current)
sandy
Line 1: Line 1:
 ====== Converting GUIDs to Strings ====== ====== Converting GUIDs to Strings ======
 > **Developer:​** //​[[developer:​rhinoscript|RhinoScript]]//​ > **Developer:​** //​[[developer:​rhinoscript|RhinoScript]]//​
-> **Summary:​** //​Demonstrates how convert an array of bytes containing a GUID to a string.//+> **Summary:​** //​Demonstrates how convert an array of bytes containing a GUID to a string//
  
 =====Question===== =====Question=====
Line 11: Line 11:
    ​DWORD-WORD-WORD-BYTE BYTE-BYTE BYTE BYTE BYTE BYTE BYTE    ​DWORD-WORD-WORD-BYTE BYTE-BYTE BYTE BYTE BYTE BYTE BYTE
  
-Where a WORD consists of two bytes and a DWORD consistes ​of four bytes. ​They are stored in memory in order from the least to the most significant, or "​little endian", ​on Intel-based systems. So, you need to make sure you decode the array in the correct order+...where ​a WORD consists of two bytes and a DWORD consists ​of four bytes. ​In memory they are stored in memory in the order of least to the most significant on Intel-based systems. So, you need to make sure you decode the array in the correct order.
  
 The following example [[developer:​rhinoscript|RhinoScript]] code demonstrates how to convert an array of bytes containing a GUID to a string. The following example [[developer:​rhinoscript|RhinoScript]] code demonstrates how to convert an array of bytes containing a GUID to a string.
developer/scriptsamples/guidtostring.txt ยท Last modified: 2015/12/02 by sandy