(byte[] append)
| 56 | } |
| 57 | |
| 58 | public void appendBytes(byte[] append) { |
| 59 | |
| 60 | if (headerBytes == null) { |
| 61 | headerBytes = new byte[append.length]; |
| 62 | System.arraycopy(append, 0, headerBytes, 0, append.length); |
| 63 | } else { |
| 64 | /* merge into tmp array */ |
| 65 | byte[] tmp = new byte[headerBytes.length + append.length]; |
| 66 | System.arraycopy(headerBytes, 0, tmp, 0, headerBytes.length); |
| 67 | System.arraycopy(append, 0, tmp, headerBytes.length, append.length); |
| 68 | |
| 69 | /* copy back into object array */ |
| 70 | headerBytes = new byte[headerBytes.length + append.length]; |
| 71 | System.arraycopy(tmp, 0, headerBytes, 0, tmp.length); |
| 72 | } |
| 73 | |
| 74 | } |
| 75 | } |
| 76 | |
| 77 |
nothing calls this directly
no outgoing calls
no test coverage detected