java.lang.Object
org.codelibs.jcifs.smb1.dcerpc.ndr.NdrObject
org.codelibs.jcifs.smb1.dcerpc.rpc.uuid_t
org.codelibs.jcifs.smb1.dcerpc.UUID
Represents a DCE/RPC UUID (Universally Unique Identifier).
This class provides methods for UUID string parsing and binary conversion.
-
Field Summary
Fields inherited from class org.codelibs.jcifs.smb1.dcerpc.rpc.uuid_t
clock_seq_hi_and_reserved, clock_seq_low, node, time_hi_and_version, time_low, time_mid -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a UUID from a string representationUUID(rpc.uuid_t uuid) Constructs a UUID from an existing rpc.uuid_t object -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbin_to_hex(int value, int length) Convert binary integer to hexadecimal stringstatic inthex_to_bin(char[] arr, int offset, int length) Convert hexadecimal characters to binary integertoString()Methods inherited from class org.codelibs.jcifs.smb1.dcerpc.rpc.uuid_t
decode, encode
-
Constructor Details
-
UUID
Constructs a UUID from an existing rpc.uuid_t object- Parameters:
uuid- the wrapped uuid object to copy values from
-
UUID
Constructs a UUID from a string representation- Parameters:
str- the string representation of the UUID to parse
-
-
Method Details
-
hex_to_bin
public static int hex_to_bin(char[] arr, int offset, int length) Convert hexadecimal characters to binary integer- Parameters:
arr- the character array containing hex digitsoffset- the starting position in the arraylength- the number of hex digits to convert- Returns:
- the integer value of the hex digits
-
bin_to_hex
Convert binary integer to hexadecimal string- Parameters:
value- the integer value to convertlength- the desired length of the hex string- Returns:
- the hexadecimal string representation
-
toString
-