Lines Matching refs:out

119     int bitwidth, GeneratedFile &out) {
121 out.indent() << "// return byte array representation of the " << bitwidth
123 out.indent() << "public static byte[] getBitCode" << bitwidth << "()";
124 out.startBlock();
125 out.indent() << "return getBitCode" << bitwidth << "Internal();\n";
126 out.endBlock(true);
133 int seg_num, GeneratedFile &out) {
134 out.indent() << "private static byte[] getSegment" << bitwidth << "_"
136 out.startBlock();
137 out.indent() << "byte[] data = {";
138 out.increaseIndent();
144 out << "\n";
145 out.indent();
148 out << " ";
150 out << std::setw(4) << static_cast<int>(buff[written]) << ",";
152 out << "\n";
154 out.decreaseIndent();
155 out.indent() << "};\n";
156 out.indent() << "return data;\n";
157 out.endBlock();
164 int bitwidth, GeneratedFile &out) {
178 GenerateAccessorMethod(context, bitwidth, out);
189 GenerateSegmentMethod(buff, read_length, bitwidth, seg_num, out);
197 out.indent() << "private static int bitCode" << bitwidth << "Length = "
199 out.indent() << "private static byte[] getBitCode" << bitwidth
201 out.startBlock();
202 out.indent() << "byte[] bc = new byte[bitCode" << bitwidth << "Length];\n";
203 out.indent() << "int offset = 0;\n";
204 out.indent() << "byte[] seg;\n";
206 out.indent() << "seg = getSegment" << bitwidth << "_" << i << "();\n";
207 out.indent() << "System.arraycopy(seg, 0, bc, offset, seg.length);\n";
208 out.indent() << "offset += seg.length;\n";
210 out.indent() << "return bc;\n";
211 out.endBlock();
218 GeneratedFile &out) {
219 if (!GenerateJavaCodeAccessorMethodForBitwidth(context, 32, out)) {
223 if (!GenerateJavaCodeAccessorMethodForBitwidth(context, 64, out)) {
233 const char *clazz_name, GeneratedFile &out) {
235 out << "/**\n";
236 out << " * @hide\n";
237 out << " */\n";
238 out << "public class " << clazz_name;
239 out.startBlock();
248 ret = GenerateJavaCodeAccessorMethod(context, out);
255 out.endBlock();
274 GeneratedFile out;
275 if (!out.startFile(output_path, filename, context.rsFileName,
280 out << "package " << context.packageName << ";\n\n";
282 bool ret = GenerateAccessorClass(context, clazz_name.c_str(), out);
284 out.closeFile();