LumpReadArray: Difference between revisions

Fix example
(Documented LumpReadArray)
Tag: Source edit
 
(Fix example)
Tag: Source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ACSWarning}}{{DevfeatureWarning|version=3.2|type=an [[ACS]] function}}
{{ACSWarning}}{{DevfeatureWarning|version=3.2|type=an [[ACS]] function}}
int '''LumpReadArray''' (int ''lump'', int ''pos'' array ''array'', int ''arrayPos''[, int ''length'']) {{Devfeature|3.2|alpha}}
int '''LumpReadArray''' (int ''lump'', int ''pos'', array ''array'', int ''arrayPos''[, int ''length'']) {{Devfeature|3.2|alpha}}
==Usage==
==Usage==
Reads bytes from the lump into the given array.
Reads bytes from the lump into the given array.
Line 22: Line 22:
int handle = LumpOpen("MYLUMP");
int handle = LumpOpen("MYLUMP");


     // The next lump was not found.
     // The lump was not found.
     if (startIndex == -1) {
     if (handle == -1) {
         break;
         terminate;
     }
     }


Line 49: Line 49:
*[[LumpGetInfo]]
*[[LumpGetInfo]]
*[[LumpClose]]
*[[LumpClose]]
[[Category: ACS functions]]