indra::base::lluuid Namespace Reference


Classes

class  UUID

Functions

def _int2binstr
def _binstr2int
def printTranslatedMemory
def isUUID
def isPossiblyID
def uuid_bits_to_string
def uuid_bits_to_uuid

Variables

tuple NULL = UUID()


Detailed Description

\
@file lluuid.py
@brief UUID parser/generator.

$LicenseInfo:firstyear=2004&license=mit$

Copyright (c) 2004-2008, Linden Research, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
$/LicenseInfo$

Function Documentation

def indra::base::lluuid::_binstr2int (   s  )  [private]

Definition at line 39 of file lluuid.py.

def indra::base::lluuid::_int2binstr (   i,
  l 
) [private]

Definition at line 32 of file lluuid.py.

def indra::base::lluuid::isPossiblyID (   id_str  ) 

This function returns 1 if the string passed has some uuid-like
characteristics. Otherwise returns 0.

Definition at line 253 of file lluuid.py.

def indra::base::lluuid::isUUID (   id_str  ) 

This function returns:
- 1 if the string passed is a UUID
- 0 is the string passed is not a UUID
- None if it neither of the if's below is satisfied

Definition at line 238 of file lluuid.py.

def indra::base::lluuid::printTranslatedMemory (   four_hex_uints  ) 

We expect to get the string as four hex units. eg:
0x147d54db		0xc34b3f1b		0x714f989b		0x0a892fd2
Which will be translated to:
db547d14-1b3f4bc3-9b984f71-d22f890a

Definition at line 227 of file lluuid.py.

def indra::base::lluuid::uuid_bits_to_string (   bits  ) 

Definition at line 289 of file lluuid.py.

def indra::base::lluuid::uuid_bits_to_uuid (   bits  ) 

Definition at line 298 of file lluuid.py.


Variable Documentation

Definition at line 225 of file lluuid.py.


Generated on Fri May 16 09:42:24 2008 for SecondLife by  doxygen 1.5.5