All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fix
consume()
missing null terminator inStringBuilder
.
- Fix
consume()
missing null terminator.
- Add
consume()
toStringBuilder
andBuffer
to take ownership of the internal buffer instead of copying it.
- Fix usage of abort instead of panic.
- Lot's of changes since Mojo 24.5. Sorry, I don't have a more granualar changelog!
- UDP support in
net
package. examples
package withtcp
andudp
examples usingSocket
and their respectivedial
andlisten
functions.- Added
scan_runes
split function tobufio.scan
module. - Added
bufio.Scanner
examples to theexamples
directory.
Listener
,Dialer
, andConn
interfaces have been removed until Trait support improves. For now, calllisten_tcp/listen_udp
anddial_tcp/dial_udp
functions directly.
- Incrementally moving towards using
Span
for theReader
andWriter
traits. Added an_read
function toReader
and_read_at
toReaderAt
traits to enable reading intoSpan
. The usual implementation is the take aList[UInt8]
but then to use_read
and pass aSpan
constructed from the List.
- Moved benchmarks to their own folder.
- Switch to more general usage of
Span[UInt8]
instead of copying bytes where possible. bufio
Reader
andWriter
now useInlineList
for the backing buffer because it does not need to grow.bufio
Scanner
now usesUnsafePointer[UInt8]
for the backing buffer, which is more unsafe thanList[UInt8]
but faster.bytes
Buffer
andReader
now useUnsafePointer[UInt8]
for the backing buffer, which is more unsafe thanList[UInt8]
but faster.goodies
package has been retired and folded into thegojo.io
module.strings
StringBuilder
now usesUnsafePointer[UInt8]
instead of aDTypePointer[DType.uint8]
for better compability withList
.