Change int[] to any[] for data r/w functions (#1221)
This commit is contained in:
@@ -126,7 +126,7 @@ methodmap File < Handle
|
||||
// @param size Size of each element, in bytes, to be read.
|
||||
// Valid sizes are 1, 2, or 4.
|
||||
// @return Number of elements read, or -1 on error.
|
||||
public native int Read(int[] items, int num_items, int size);
|
||||
public native int Read(any[] items, int num_items, int size);
|
||||
|
||||
// Reads a UTF8 or ANSI string from a file.
|
||||
//
|
||||
@@ -152,7 +152,7 @@ methodmap File < Handle
|
||||
// @param size Size of each item in the array in bytes.
|
||||
// Valid sizes are 1, 2, or 4.
|
||||
// @return True on success, false on error.
|
||||
public native bool Write(const int[] items, int num_items, int size);
|
||||
public native bool Write(const any[] items, int num_items, int size);
|
||||
|
||||
// Writes a binary string to a file.
|
||||
//
|
||||
@@ -361,7 +361,7 @@ native bool ReadFileLine(Handle hndl, char[] buffer, int maxlength);
|
||||
* Valid sizes are 1, 2, or 4.
|
||||
* @return Number of elements read, or -1 on error.
|
||||
*/
|
||||
native int ReadFile(Handle hndl, int[] items, int num_items, int size);
|
||||
native int ReadFile(Handle hndl, any[] items, int num_items, int size);
|
||||
|
||||
/**
|
||||
* Reads a UTF8 or ANSI string from a file.
|
||||
@@ -394,7 +394,7 @@ native int ReadFileString(Handle hndl, char[] buffer, int max_size, int read_cou
|
||||
* @return True on success, false on error.
|
||||
* @error Invalid Handle.
|
||||
*/
|
||||
native bool WriteFile(Handle hndl, const int[] items, int num_items, int size);
|
||||
native bool WriteFile(Handle hndl, const any[] items, int num_items, int size);
|
||||
|
||||
/**
|
||||
* Writes a binary string to a file.
|
||||
|
||||
Reference in New Issue
Block a user