MCPcopy Create free account
hub / github.com/blues/note / binExtractUint8

Method binExtractUint8

lib/bulk.go:206–212  ·  view source on GitHub ↗
(ctx context.Context, what string)

Source from the content-addressed store, hash-verified

204}
205
206func (tmplContext *BulkTemplateContext) binExtractUint8(ctx context.Context, what string) (value uint8) {
207 bin, success := tmplContext.binExtract(ctx, what, 1)
208 if !success {
209 return
210 }
211 return uint8(bin[0])
212}
213
214func (tmplContext *BulkTemplateContext) binExtractInt16(ctx context.Context, what string) (value int16) {
215 bin, success := tmplContext.binExtract(ctx, what, 2)

Callers 2

binExtractStringMethod · 0.95
BulkDecodeNextEntryMethod · 0.95

Calls 1

binExtractMethod · 0.95

Tested by

no test coverage detected