Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 699 Bytes

README.adoc

File metadata and controls

28 lines (22 loc) · 699 Bytes

uProtocol UUID

Table of Contents

1. Overview

Implementation of uProtocol UUID specifications.

2. Examples

    uuid = Factories.UPROTOCOL.create()
    version = UUIDUtils.get_version(uuid)
    time = UUIDUtils.get_time(uuid)
    str_uuid = UuidSerializer.serialize(uuid)

    assertTrue(UUIDUtils.is_uprotocol(uuid))
    assertTrue(UUIDUtils.is_uuid(uuid))
    assertFalse(UUIDUtils.is_uuidv6(uuid))
    assertTrue(version)
    assertTrue(time)
    assertFalse(str_uuid.isspace())

    uuid1 = UuidSerializer.deserialize(uuid_string)
    assertNotEqual(uuid1, UUID())
    assertEqual(uuid, uuid1)