(int bytes, int offset, byte[] buffer)
| 232 | } |
| 233 | |
| 234 | private void addFourBytes(int bytes, int offset, byte[] buffer) throws IOException { |
| 235 | buffer[offset] = (byte) (bytes & 0xff); |
| 236 | buffer[offset + 1] = (byte) ((bytes >> 8) & 0xff); |
| 237 | buffer[offset + 2] = (byte) ((bytes >> 16) & 0xff); |
| 238 | buffer[offset + 3] = (byte) ((bytes >> 24) & 0xff); |
| 239 | } |
| 240 | |
| 241 | private int writeUTF8(String text) throws IOException { |
| 242 | byte[] bytes = text.getBytes("UTF-8"); |
no outgoing calls
no test coverage detected