( code opCode, key string)
| 666 | } |
| 667 | |
| 668 | func (c *RawBinaryClient) receiveCountResponse( |
| 669 | code opCode, |
| 670 | key string) CountResponse { |
| 671 | |
| 672 | status, _, _, value, err := c.receiveResponse(code) |
| 673 | if err != nil { |
| 674 | return NewCountErrorResponse(key, err) |
| 675 | } |
| 676 | |
| 677 | valueBuffer := bytes.NewBuffer(value) |
| 678 | var count uint64 |
| 679 | if err := binary.Read(valueBuffer, binary.BigEndian, &count); err != nil { |
| 680 | return NewCountErrorResponse(key, err) |
| 681 | } |
| 682 | |
| 683 | return NewCountResponse(key, status, count) |
| 684 | } |
| 685 | |
| 686 | // See Client interface for documentation. |
| 687 | func (c *RawBinaryClient) Increment( |
no test coverage detected