Commit Graph

9 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Matthew Wild ffa72d829b util.dbuffer: Add efficient shortcuts for discard() in certain cases 3 years ago
Matthew Wild 586a0d8493 util.dbuffer: Remove redundant code (read_chunk() cannot fail at this point) 3 years ago
Matthew Wild 01c5bf5529 util.dbuffer: Optimize :sub() and :byte() 5 years ago
Kim Alvefur d3b3e21720 util.dbuffer: Expose length as :len() method, like strings 5 years ago
Matthew Wild 91d42d3218 util.dbuffer: Fix :sub() not working with partially-consumed chunks (thanks Zash for test case) 5 years ago
Matthew Wild e21e4b2b24 util.dbuffer: Fix bugs, remove multi-char support (more complex than first thought) 5 years ago
Matthew Wild 4e56658eb3 util.dbuffer: Add read_until() method 5 years ago
Matthew Wild f80e643a0e util.dbuffer: Add __name to metatable 5 years ago
Matthew Wild 7fa4cc8de0 util.dbuffer: Fix :sub() not working with partially-consumed chunks (thanks Zash for test case) 5 years ago
Matthew Wild 9115d2a366 util.dbuffer: Fix traceback when :collapse() is called on empty buffer 5 years ago
Matthew Wild 67cf276ba2 util.dbuffer: If no bytes parameter passed to read, return remainder of frontmost chunk 6 years ago
Matthew Wild fb8e10737d util.dbuffer: dynamic string buffer 6 years ago