MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / ReadFileBytes

Method ReadFileBytes

StereoKit/Util/Platform.cs:229–233  ·  view source on GitHub ↗

Reads the entire contents of the file as a byte array, taking advantage of any permissions that may have been granted by Platform.FilePicker. Returns null on failure. Path to the file. Not affected by Assets folder path. A raw byte array if successful, null if not.

(string filename)

Source from the content-addressed store, hash-verified

227 /// folder path.</param>
228 /// <returns>A raw byte array if successful, null if not.</returns>
229 public static byte[] ReadFileBytes(string filename)
230 {
231 ReadFile(filename, out byte[] data);
232 return data;
233 }
234 #endregion
235 }
236}

Callers 1

InitializeMethod · 0.80

Calls

no outgoing calls

Tested by 1

InitializeMethod · 0.64