Skip to content

format

typescript
MemoryStream.PrepareRead(limit_length)

class: MemoryStream

description

Performs the operation to prepare for reading data.

When this method is called, it sets the size of the data stream of the current MemoryStream object to the specified size. If the size of the data stream to be read is not specified, it is set to the current read/write position. Then, it sets the current read/write position to 0.

parameter

param_nametypedescription
limit_lengthnumber?Specifies the size of the data stream to be read.

reture

typedescription
void

code example