Skip to content

ariaandika/tcio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TcIO.

Collection of utilities for working with async io and raw bytes.

  • ByteStr, a Bytes that contains a valid UTF-8
  • Either, represent 2 types that have the same behavior
  • atoi, parse bytes directly to signed/unsigned integer
  • Cursor, unsafely iterate over bytes without bounds checking
  • Future adapters

This crate also contains shared async types, such:

  • AsyncIoRead and AsyncIoWrite

Other types are exploration that may or may not be persist in future version.

Design Your Own Types

Other than providing ready to use APIs, this repository also contains guide to creating your own:

  • collections, how memory is allocated, reallocated, and deallocated
  • reference counter, how to manage counter, atomic ordering, and deallocation.
  • synchronization, how to store and call waker.
  • event model, how to read io, partial parsing, and streaming data.

About

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages