Record Class Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResult
java.lang.Object
java.lang.Record
com.oracle.truffle.js.builtins.Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResult
- Enclosing class:
Uint8ArrayBuiltins.Uint8ArrayBaseNode
protected static record Uint8ArrayBuiltins.Uint8ArrayBaseNode.EncodeResult(int read, int written, byte[] bytes, JSException error)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEncodeResult(int read, int written, byte[] bytes, JSException error) Creates an instance of aEncodeResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Returns the value of thebytesrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.intread()Returns the value of thereadrecord component.final StringtoString()Returns a string representation of this record class.intwritten()Returns the value of thewrittenrecord component.
-
Constructor Details
-
EncodeResult
Creates an instance of aEncodeResultrecord class.- Parameters:
read- the value for thereadrecord componentwritten- the value for thewrittenrecord componentbytes- the value for thebytesrecord componenterror- the value for theerrorrecord component
-
-
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. -
read
public int read()Returns the value of thereadrecord component.- Returns:
- the value of the
readrecord component
-
written
public int written()Returns the value of thewrittenrecord component.- Returns:
- the value of the
writtenrecord component
-
bytes
public byte[] bytes()Returns the value of thebytesrecord component.- Returns:
- the value of the
bytesrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-