stream.readString

From GTA Connected
(Redirected from Stream.readString)
Jump to: navigation, search

Method Server and Client All Games Online and Offline

Server 1.0.0, Client 1.0.0

string stream.readString(void)

Description

The stream.readString method is used to read data from a stream, that was written to the stream using Stream::writeString(), because of the header at the start of the data containing an encoded data length.

Parameters

Type Description
void This method doesn't take any parameters.

Returns

Success Returns

Type Description
string A string containing the data read from the stream.

Failure Returns

Type Value
null n/a

Types

This method can only be used on the Stream type.

Notes

  • Data can utilize full octet range.
  • See also Stream.readBytes, which reads data from a stream without a header.

Examples

There aren't any examples for this method.

Compatibility

There isn't any compatibility information for this method.

Related