(ctx context.Context, what string)
| 367 | } |
| 368 | |
| 369 | func (tmplContext *BulkTemplateContext) binExtractInt64(ctx context.Context, what string) (value int64) { |
| 370 | bin, success := tmplContext.binExtract(ctx, what, 8) |
| 371 | if !success { |
| 372 | return |
| 373 | } |
| 374 | value = int64(bin[0]) |
| 375 | value = value | (int64(bin[1]) << 8) |
| 376 | value = value | (int64(bin[2]) << 16) |
| 377 | value = value | (int64(bin[3]) << 24) |
| 378 | value = value | (int64(bin[4]) << 32) |
| 379 | value = value | (int64(bin[5]) << 40) |
| 380 | value = value | (int64(bin[6]) << 48) |
| 381 | value = value | (int64(bin[7]) << 56) |
| 382 | return value |
| 383 | } |
| 384 | |
| 385 | func (tmplContext *BulkTemplateContext) binExtractUint64(ctx context.Context, what string) (value uint64) { |
| 386 | bin, success := tmplContext.binExtract(ctx, what, 8) |
no test coverage detected