(ctx context.Context, value int64)
| 1569 | } |
| 1570 | |
| 1571 | func (tmplContext *BulkTemplateContext) binAppendInt64(ctx context.Context, value int64) (err error) { |
| 1572 | if debugEncoding { |
| 1573 | logDebug(ctx, "append %d INT64 = %d", tmplContext.binDepth, value) |
| 1574 | } |
| 1575 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1576 | value = value >> 8 |
| 1577 | if err == nil { |
| 1578 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1579 | } |
| 1580 | value = value >> 8 |
| 1581 | if err == nil { |
| 1582 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1583 | } |
| 1584 | value = value >> 8 |
| 1585 | if err == nil { |
| 1586 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1587 | } |
| 1588 | value = value >> 8 |
| 1589 | if err == nil { |
| 1590 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1591 | } |
| 1592 | value = value >> 8 |
| 1593 | if err == nil { |
| 1594 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1595 | } |
| 1596 | value = value >> 8 |
| 1597 | if err == nil { |
| 1598 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1599 | } |
| 1600 | value = value >> 8 |
| 1601 | if err == nil { |
| 1602 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1603 | } |
| 1604 | return err |
| 1605 | } |
| 1606 | |
| 1607 | func (tmplContext *BulkTemplateContext) binAppendUint64(ctx context.Context, value uint64) (err error) { |
| 1608 | if debugEncoding { |
no test coverage detected