package lz4stream
Import Path
github.com/pierrec/lz4/v4/internal/lz4stream (on go.dev )
Dependency Relation
imports 8 packages , and imported by one package
Package-Level Type Names (total 6)
/* sort by: alphabet | popularity */
type Frame (struct)
Fields (total 4 )
Blocks Blocks
Checksum uint32
Descriptor FrameDescriptor
Magic uint32
Methods (total 6 )
(*Frame) CloseR (src io .Reader ) (err error )
(*Frame) CloseW (dst io .Writer , num int ) error
(*Frame) InitR (src io .Reader , num int ) (chan []byte , error )
(*Frame) InitW (dst io .Writer , num int , legacy bool )
(*Frame) ParseHeaders (src io .Reader ) error
(*Frame) Reset (num int )
Reset allows reusing the Frame.
The Descriptor configuration is not modified.
As Outputs Of (at least one exported )
func NewFrame () *Frame
As Inputs Of (at least 7 )
func NewFrameDataBlock (f *Frame ) *FrameDataBlock
func (*FrameDataBlock ).Close (f *Frame )
func (*FrameDataBlock ).Compress (f *Frame , src []byte , level lz4block .CompressionLevel ) *FrameDataBlock
func (*FrameDataBlock ).Read (f *Frame , src io .Reader , cum uint32 ) (uint32 , error )
func (*FrameDataBlock ).Uncompress (f *Frame , dst, dict []byte , sum bool ) ([]byte , error )
func (*FrameDataBlock ).Write (f *Frame , dst io .Writer ) error
func (*FrameDescriptor ).Write (f *Frame , dst io .Writer ) error
type FrameDataBlock (struct)
Fields (total 3 )
Checksum uint32
Data []byte
// compressed or uncompressed data (.data or .src)
Size DataBlockSize
Methods (total 5 )
(*FrameDataBlock) Close (f *Frame )
(*FrameDataBlock) Compress (f *Frame , src []byte , level lz4block .CompressionLevel ) *FrameDataBlock
Block compression errors are ignored since the buffer is sized appropriately.
(*FrameDataBlock) Read (f *Frame , src io .Reader , cum uint32 ) (uint32 , error )
Read updates b with the next block data, size and checksum if available.
(*FrameDataBlock) Uncompress (f *Frame , dst, dict []byte , sum bool ) ([]byte , error )
(*FrameDataBlock) Write (f *Frame , dst io .Writer ) error
As Outputs Of (at least 2 )
func NewFrameDataBlock (f *Frame ) *FrameDataBlock
func (*FrameDataBlock).Compress (f *Frame , src []byte , level lz4block .CompressionLevel ) *FrameDataBlock
Package-Level Functions (total 2)
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .