(ctx context.Context, value int16)
| 1306 | } |
| 1307 | |
| 1308 | func (tmplContext *BulkTemplateContext) binAppendInt16(ctx context.Context, value int16) (err error) { |
| 1309 | if debugEncoding { |
| 1310 | logDebug(ctx, "append %d INT16 = %d", tmplContext.binDepth, value) |
| 1311 | } |
| 1312 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1313 | value = value >> 8 |
| 1314 | if err == nil { |
| 1315 | err = tmplContext.binAppendUint8(ctx, uint8(value&0xff)) |
| 1316 | } |
| 1317 | return err |
| 1318 | } |
| 1319 | func (tmplContext *BulkTemplateContext) binAppendUint16(ctx context.Context, value uint16) (err error) { |
| 1320 | if debugEncoding { |
| 1321 | logDebug(ctx, "append %d UINT16 = %d", tmplContext.binDepth, value) |
no test coverage detected