 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( // HeaderLength length of the pktline header HeaderLength = 4 // MaxLength max line length MaxLength = 65524 )
Variables ¶
      View Source
      
  
    var ( // ErrUnderflow is triggered when a line is shorter than the described length ErrUnderflow = errors.New("unexpected string length (underflow)") // ErrInvalidHeader invalid pktline header ErrInvalidHeader = errors.New("invalid header") // ErrInvalidLen ivanlid line length found, < 0 ErrInvalidLen = errors.New("invalid length") )
      View Source
      
  
var ( //ErrOverflow is triggered when the line length exceed the MaxLength ErrOverflow = errors.New("unexpected string length (overflow)") )
Functions ¶
func EncodeFromString ¶
EncodeFromString encodes a string to pkt-line format
Types ¶
type Decoder ¶
type Decoder struct {
	// contains filtered or unexported fields
}
    Decoder implements a pkt-line format decoder
 Click to show internal directories. 
   Click to hide internal directories.