BoundarySize will contain the size of the complete boundary pattern
func IsBoundary ¶
IsBoundary checks if the given byte slice equals the boundary.
func SeekBoundary ¶
SeekBoundary reads from the reader until the end of the boundary. Returns the number of bytes (offset) that were read (including the pattern itself). Returns -1 if the boundary was not found.
func SeekPattern ¶
SeekPattern reads from the reader until the search pattern was found. The next byte coming from the reader will be the first byte after the pattern ended. Returns the number of bytes (offset) that were read (including the pattern itself). Returns -1 if the pattern was not found.
type Attachment ¶
Attachment represents a single embedded resource.