()
| 78 | } |
| 79 | |
| 80 | func (t *TCPClient) ReadInt32() (int32, error) { |
| 81 | b, err := t.ReadBytes(4) |
| 82 | if err != nil { |
| 83 | return 0, err |
| 84 | } |
| 85 | return int32(binary.BigEndian.Uint32(b)), nil |
| 86 | } |
| 87 | |
| 88 | func (t *TCPClient) Close() { |
| 89 | t.close() |
no test coverage detected