 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( HeaderLength = 4 MaxLength = 65524 )
Variables ¶
      View Source
      
  
    var ( ErrUnderflow = errors.New("unexpected string length (underflow)") ErrInvalidHeader = errors.New("invalid header") ErrInvalidLen = errors.New("invalid length") )
      View Source
      
  
var (
	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.