MCPcopy
hub / github.com/danielgtaylor/huma / Len

Method Len

validate.go:144–146  ·  view source on GitHub ↗

Len returns the length of the current path.

()

Source from the content-addressed store, hash-verified

142
143// Len returns the length of the current path.
144func (b *PathBuffer) Len() int {
145 return b.off
146}
147
148// Bytes returns the underlying slice of bytes of the path.
149func (b *PathBuffer) Bytes() []byte {

Callers 15

convertTypeFunction · 0.80
schemaFromTypeFunction · 0.80
isEmptyValueFunction · 0.80
TestSchemaOldFunction · 0.80
TestFeaturesFunction · 0.80
TestContentTypeFilterFunction · 0.80
TestErrorFunction · 0.80
TestValidateFunction · 0.80
everyMethod · 0.80
everyPBMethod · 0.80

Calls

no outgoing calls

Tested by 9

TestSchemaOldFunction · 0.64
TestFeaturesFunction · 0.64
TestContentTypeFilterFunction · 0.64
TestErrorFunction · 0.64
TestValidateFunction · 0.64