Lines Matching refs:out

195      * Prints out the contents of this instance, in a debugging-friendly
198 * @param out {@code non-null;} where to output to
201 public void debugPrint(Writer out, boolean verbose) {
202 PrintWriter pw = Writers.printWriterFor(out);
330 ByteArrayAnnotatedOutput out = new ByteArrayAnnotatedOutput();
332 encodeOutput(addedTo.getFile(), out);
333 encodedForm = out.toByteArray();
338 * Writes out the encoded form of this instance.
341 * @param out {@code non-null;} where to write to
343 private void encodeOutput(DexFile file, AnnotatedOutput out) {
344 boolean annotates = out.annotates();
347 out.annotate(0, offsetString() + " class data for " +
351 encodeSize(file, out, "static_fields", staticFields.size());
352 encodeSize(file, out, "instance_fields", instanceFields.size());
353 encodeSize(file, out, "direct_methods", directMethods.size());
354 encodeSize(file, out, "virtual_methods", virtualMethods.size());
356 encodeList(file, out, "static_fields", staticFields);
357 encodeList(file, out, "instance_fields", instanceFields);
358 encodeList(file, out, "direct_methods", directMethods);
359 encodeList(file, out, "virtual_methods", virtualMethods);
362 out.endAnnotation();
367 * Helper for {@link #encodeOutput}, which writes out the given
371 * @param out {@code non-null;} where to write to
375 private static void encodeSize(DexFile file, AnnotatedOutput out,
377 if (out.annotates()) {
378 out.annotate(String.format(" %-21s %08x", label + "_size:",
382 out.writeUnsignedLeb128(size);
386 * Helper for {@link #encodeOutput}, which writes out the given
391 * @param out {@code non-null;} where to write to
395 private static void encodeList(DexFile file, AnnotatedOutput out,
404 if (out.annotates()) {
405 out.annotate(0, " " + label + ":");
409 lastIndex = list.get(i).encode(file, out, lastIndex, i);
415 public void writeTo0(DexFile file, AnnotatedOutput out) {
416 boolean annotates = out.annotates();
424 encodeOutput(file, out);
426 out.write(encodedForm);