MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / HasSuffix

Method HasSuffix

xmlparser/buffer.go:55–57  ·  view source on GitHub ↗

HasSuffix reports whether the buffer ends with the given suffix.

(suffix []byte)

Source from the content-addressed store, hash-verified

53
54// HasSuffix reports whether the buffer ends with the given suffix.
55func (b *buffer) HasSuffix(suffix []byte) bool {
56 return bytes.HasSuffix(*b, suffix)
57}
58
59// Remove removes the last n bytes.
60func (b *buffer) Remove(n int) {

Callers 4

readProcInstMethod · 0.80
readCommentMethod · 0.80
readCDataMethod · 0.80
addMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected