(ctx context.Context, what string)
| 256 | } |
| 257 | |
| 258 | func (tmplContext *BulkTemplateContext) binExtractInt32(ctx context.Context, what string) (value int32) { |
| 259 | bin, success := tmplContext.binExtract(ctx, what, 4) |
| 260 | if !success { |
| 261 | return |
| 262 | } |
| 263 | value = int32(bin[0]) |
| 264 | value = value | (int32(bin[1]) << 8) |
| 265 | value = value | (int32(bin[2]) << 16) |
| 266 | value = value | (int32(bin[3]) << 24) |
| 267 | return value |
| 268 | } |
| 269 | |
| 270 | func (tmplContext *BulkTemplateContext) binExtractUint32(ctx context.Context, what string) (value uint32) { |
| 271 | bin, success := tmplContext.binExtract(ctx, what, 4) |
no test coverage detected