(ctx context.Context, value int64)
| 1401 | } |
| 1402 | |
| 1403 | func (tmplContext *BulkTemplateContext) binAppendInt40(ctx context.Context, value int64) (err error) { |
| 1404 | if debugEncoding { |
| 1405 | logDebug(ctx, "append %d INT40 = %d", tmplContext.binDepth, value) |
| 1406 | } |
| 1407 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1408 | value = value >> 8 |
| 1409 | if err == nil { |
| 1410 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1411 | } |
| 1412 | value = value >> 8 |
| 1413 | if err == nil { |
| 1414 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1415 | } |
| 1416 | value = value >> 8 |
| 1417 | if err == nil { |
| 1418 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1419 | } |
| 1420 | value = value >> 8 |
| 1421 | if err == nil { |
| 1422 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1423 | } |
| 1424 | return err |
| 1425 | } |
| 1426 | |
| 1427 | func (tmplContext *BulkTemplateContext) binAppendUint40(ctx context.Context, value uint64) (err error) { |
| 1428 | if debugEncoding { |
no test coverage detected