Categorygithub.com/lemon-mint/frameio
modulepackage
1.2.0
Repository: https://github.com/lemon-mint/frameio.git
Documentation: pkg.go.dev

# README

Frame IO

Go Reference

DoS Safe Frame based IO.

Convert Stream to Frame!

  • Payload Size Verification (Safe from attacks that falsify payload size)
  • Read CallBack (Reduce Memory Allocation)
  • Read To Buffer (Reduce Memory Allocation)
  • Payload maximum size limit

Protocol

frame "N" is set to 1 if it is the last block of that frame If there are additional blocks after that, N is set to 0

# Packages

No description provided by the author

# Functions

Create a new FrameReader r: io.Reader should be buffered.
Create a new FrameWriter w: io.Writer should be buffered.

# Constants

No description provided by the author

# Variables

No description provided by the author
Frame Size Exceeds MaxSize.
BlockSize is bigger than the maximum BLOCK_SIZE.
Sum of all block sizes is not equal to TotalSize.

# Structs

ReadFrame read frame from io.Reader r: io.Reader should be buffered.
FrameWriter write frame to io.Writer w: io.Writer should be buffered.