mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
SAGA: Improve comment for ByteArray::getBuffer()
svn-id: r53736
This commit is contained in:
+5
-2
@@ -460,8 +460,11 @@ inline uint16 objectIndexToId(int type, int index) {
|
||||
|
||||
class ByteArray : public Common::Array<byte> {
|
||||
public:
|
||||
|
||||
byte * getBuffer() { // call this method instead of "&front()" if you insure of array emptyness state
|
||||
/**
|
||||
* Return a pointer to the start of the buffer underlying this byte array,
|
||||
* or NULL if the buffer is empty.
|
||||
*/
|
||||
byte *getBuffer() {
|
||||
return empty() ? NULL : &front();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user