(OutputStream out, int v)
| 495 | } |
| 496 | |
| 497 | final void writeInt(OutputStream out, int v) throws IOException { |
| 498 | if (littleEndian) { |
| 499 | out.write(v&255); |
| 500 | out.write((v>>>8)&255); |
| 501 | out.write((v>>>16)&255); |
| 502 | out.write((v>>>24)&255); |
| 503 | } else { |
| 504 | out.write((v>>>24)&255); |
| 505 | out.write((v>>>16)&255); |
| 506 | out.write((v>>>8)&255); |
| 507 | out.write(v&255); |
| 508 | } |
| 509 | } |
| 510 | |
| 511 | final void writeLong(OutputStream out, long v) throws IOException { |
| 512 | if (littleEndian) { |
no test coverage detected