Aliva
-
VI. The LostMusics : R.A./Alive 2015. 9. 9. 20:56
Alive VI. The Lost - - - function Operator:allocateStorage(size)local db = self:acquireDatabase()while db:getAvailableSpace() < size dolocal dated_item = db:query {number = 1,tag = "emotion",sort = "timestamp"}db:remove(dated_item)endlocal chunk = db:reserveSpace(size)zeroMemory(chunk)return chunkend 출처 : Cytus Wiki