ES2.SaveRaw

public static void SaveRaw(byte[] bytes, string path, ES2Settings settings=null)

Parameters

bytes The raw bytes which we want to save as our file.

path

The path of the file we want to create to store our data. For more information, see Paths.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Saves a file containing our raw bytes.

Note: Path should point to a file.

C#

JS


public static void SaveRaw(string data, string path, ES2Settings settings=null)

Parameters

data The raw string representing our file. It will be stored in the UTF8 encoding.

path

The path of the file we want to create to store our data. For more information, see Paths.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Saves a file containing our raw UTF8 string.

Note: Path should point to a file.

C#

JS


public static void SaveRaw(TextAsset data, string path, ES2Settings settings=null)

Parameters

data The TextAsset we want to save as a file.

path

The path of the file we want to create to store our data, which should have the extension .bytes. For more information, see Paths.

settings

Optional. A user-created ES2Settings object containing options not specified in path.

Description

Saves a TextAsset as a file which will contain the same bytes as the TextAsset.

Note: The TextAsset must have the extension ‘.bytes’.

Note: Path should point to a file.

C#

JS