Internal array of slot names for the object.
Name of the class.
Type of the class.
Reference to the constructor of the current class (late static binding).
Unique identifier for the constructor.
Identifier for the parent class (if any).
Reads data from the provided BytesIO instance and processes it using the associated class's read method.
The BytesIO instance containing the data to be read.
Additional arguments to be passed to the class's read method.
A promise that resolves with the result of the read operation.
Serializes the provided arguments using the associated class's write method.
The arguments to be serialized.
The resulting Buffer after serialization.
StaticreadAsynchronously reads a boolean value from the provided BytesIO stream.
This method reads a 32-bit unsigned integer (little-endian) from the stream
and compares it to BoolTrue.ID to determine the boolean value.
The BytesIO instance to read from.
Additional arguments (unused).
A promise that resolves to true if the read value equals BoolTrue.ID, otherwise false.
StaticwriteSerializes a boolean value into a Buffer.
The boolean value to serialize.
A Buffer representing the serialized boolean value.
If value is true, returns the result of BoolTrue.write();
otherwise, returns the result of BoolFalse.write().
Represents a boolean value in a custom serialization format.
The
Boolclass provides static methods to serialize and deserialize boolean values to and from a specific binary format, using theBoolTrueandBoolFalserepresentations. It extends theTLObjectbase class and overrides its serialization methods.Remarks
writemethod serializes a boolean value into aBufferusing the appropriate representation fortrueorfalse.readmethod asynchronously reads a boolean value from aBytesIOstream, interpreting the value based on a 32-bit unsigned integer comparison.Example