BlitzMax

BlitzMax

  • Downloads
  • Docs
  • API
  • Resources
  • About
Edit

TBuffer

A buffer is a list of elements of a specific type.

Methods

Method Clear:TBuffer()

Clears the buffer.

Does not change the the content of the buffer, other than to set the position to zero, the mark is cleared, and the limit is set to buffer size.


Method Flip:TBuffer()

Flips the buffer.

The limit is set to the current position, position set to zero, and the mark is cleared.


Method Limit:Int()

Return the buffer limit.


Method Limit:TBuffer(newLimit:Int)

Sets the buffer limit.


Method Mark:TBuffer()

Marks the current position that can be returned to later with a call to Reset.


Method Position:Int()

Returns the current position of the buffer.


Method Position:TBuffer(newPos:Int)

Sets the position of the buffer.


Method HasRemaining:Int()

Returns whether there are any bytes remaining in the buffer.


Method Remaining:Int()

Returns the number of bytes remaining in the buffer.


Method Reset:TBuffer()

Resets the current position to that of the last mark.

If mark is not set, this method will throw.


Method Rewind:TBuffer()

Rewinds the the position back to the start of the buffer.


  • Methods
    • Method Clear:TBuffer()
    • Method Flip:TBuffer()
    • Method Limit:Int()
    • Method Limit:TBuffer(newLimit:Int)
    • Method Mark:TBuffer()
    • Method Position:Int()
    • Method Position:TBuffer(newPos:Int)
    • Method HasRemaining:Int()
    • Method Remaining:Int()
    • Method Reset:TBuffer()
    • Method Rewind:TBuffer()
BlitzMax
Docs
Getting StartedDownloadsAbout
Community
Resources
More
GitHubStarChat on Discord
Copyright © 2026 Bruce A Henderson