Buffer:trim

From GiderosMobile
Revision as of 09:58, 7 February 2020 by Hgy29 (talk | contribs) (Created page with "'''Available since:''' Gideros 2020.2<br/> '''Class:''' Buffer<br/> === Description === Removes data from the head or tail of a Buffer objec...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2020.2
Class: Buffer

Description

Removes data from the head or tail of a Buffer object. If amount is positive, data is removed from the beginning, otherwise data is removed from the end.

(number) = Buffer:trim(amount)

Parameters

amount: (number) Amount of data to remove.

Return values

Returns (number) New buffer size.