Lines Matching refs:out

192      * Prints out the contents of this instance, in a debugging-friendly
195 * @param out {@code non-null;} where to output to
198 public void debugPrint(Writer out, boolean verbose) {
199 PrintWriter pw = Writers.printWriterFor(out);
327 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput();
329 encodeOutput(addedTo.getFile(), out);
330 encodedForm = out.toByteArray();
335 * Writes out the encoded form of this instance.
338 * @param out {@code non-null;} where to write to
340 private void encodeOutput(DexFile file, AnnotatedOutput out) {
341 boolean annotates = out.annotates();
344 out.annotate(0, offsetString() + " class data for " +
348 encodeSize(file, out, "static_fields", staticFields.size());
349 encodeSize(file, out, "instance_fields", instanceFields.size());
350 encodeSize(file, out, "direct_methods", directMethods.size());
351 encodeSize(file, out, "virtual_methods", virtualMethods.size());
353 encodeList(file, out, "static_fields", staticFields);
354 encodeList(file, out, "instance_fields", instanceFields);
355 encodeList(file, out, "direct_methods", directMethods);
356 encodeList(file, out, "virtual_methods", virtualMethods);
359 out.endAnnotation();
364 * Helper for {@link #encodeOutput}, which writes out the given
368 * @param out {@code non-null;} where to write to
372 private static void encodeSize(DexFile file, AnnotatedOutput out,
374 if (out.annotates()) {
375 out.annotate(String.format(" %-21s %08x", label + "_size:",
379 out.writeUleb128(size);
383 * Helper for {@link #encodeOutput}, which writes out the given
388 * @param out {@code non-null;} where to write to
392 private static void encodeList(DexFile file, AnnotatedOutput out,
401 if (out.annotates()) {
402 out.annotate(0, " " + label + ":");
406 lastIndex = list.get(i).encode(file, out, lastIndex, i);
412 public void writeTo0(DexFile file, AnnotatedOutput out) {
413 boolean annotates = out.annotates();
421 encodeOutput(file, out);
423 out.write(encodedForm);