Lines Matching defs:out
52 ByteArrayOutputStream out = new ByteArrayOutputStream();
53 writeShortLE(out, TEST_WIDTH);
54 writeShortLE(out, TEST_HEIGHT);
55 out.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII));
56 out.write((byte) 0); // Padding for language code.
57 writeByteArrayWithLength(out, TEST_TYPE.getBytes(StandardCharsets.US_ASCII));
58 writeByteArrayWithLength(out, TEST_FILENAME.getBytes(StandardCharsets.UTF_8));
59 return out.toByteArray();
68 * @param out The output stream to write to
71 private static void writeShortLE(ByteArrayOutputStream out, int value) {
72 out.write(value & 0xFF);
73 out.write((value >> 8) & 0xFF);
80 * @param out The output stream to write to
84 private static void writeByteArrayWithLength(ByteArrayOutputStream out, byte[] data)
86 out.write((byte) data.length);
87 out.write(data);