Record Class LazyString
java.lang.Object
java.lang.Record
net.codecrete.windowsapi.metadata.LazyString
- Record Components:
blob- BLOB containing the UTF-8 decoded stringoffset- offset to the start of the string (in bytes)length- length of the string (in number of UTF-8 code points, i.e., in bytes)
A string that is only decoded if needed.
-
Constructor Summary
ConstructorsConstructorDescriptionLazyString(byte[] blob, int offset, int length) Creates an instance of aLazyStringrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]blob()Returns the value of theblobrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.intoffset()Returns the value of theoffsetrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
LazyString
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
blob
-
offset
-
length
-