61 |
* @param quality Maximum quality that should be loaded (if quality is |
* @param quality Maximum quality that should be loaded (if quality is |
62 |
* adjusted in discrete steps, the class may round upwards). |
* adjusted in discrete steps, the class may round upwards). |
63 |
* @param o Observer to call (if non-null) when size has been adjusted |
* @param o Observer to call (if non-null) when size has been adjusted |
64 |
|
* @return The number of bytes this consumer will actually use: e.g. if |
65 |
|
* sizes come in certain increments, less memory will be used |
66 |
|
* than needed.. |
67 |
*/ |
*/ |
68 |
void setReservation(int bytes, float quality, Obs o); |
int setReservation(int bytes, float quality, Obs o); |
69 |
/** Get the number of bytes currently used. |
/** Get the number of bytes currently used. |
70 |
*/ |
*/ |
71 |
int getReservation(); |
int getReservation(); |