Lines Matching refs:out

120     int bitwidth, GeneratedFile &out) {
122 out.indent() << "// return byte array representation of the " << bitwidth
124 out.indent() << "public static byte[] getBitCode" << bitwidth << "()";
125 out.startBlock();
126 out.indent() << "return getBitCode" << bitwidth << "Internal();\n";
127 out.endBlock(true);
134 int seg_num, GeneratedFile &out) {
135 out.indent() << "private static byte[] getSegment" << bitwidth << "_"
137 out.startBlock();
138 out.indent() << "byte[] data = {";
139 out.increaseIndent();
145 out << "\n";
146 out.indent();
149 out << " ";
151 out << std::setw(4) << static_cast<int>(buff[written]) << ",";
153 out << "\n";
155 out.decreaseIndent();
156 out.indent() << "};\n";
157 out.indent() << "return data;\n";
158 out.endBlock();
165 int bitwidth, GeneratedFile &out) {
179 GenerateAccessorMethod(context, bitwidth, out);
190 GenerateSegmentMethod(buff, read_length, bitwidth, seg_num, out);
198 out.indent() << "private static int bitCode" << bitwidth << "Length = "
200 out.indent() << "private static byte[] getBitCode" << bitwidth
202 out.startBlock();
203 out.indent() << "byte[] bc = new byte[bitCode" << bitwidth << "Length];\n";
204 out.indent() << "int offset = 0;\n";
205 out.indent() << "byte[] seg;\n";
207 out.indent() << "seg = getSegment" << bitwidth << "_" << i << "();\n";
208 out.indent() << "System.arraycopy(seg, 0, bc, offset, seg.length);\n";
209 out.indent() << "offset += seg.length;\n";
211 out.indent() << "return bc;\n";
212 out.endBlock();
219 GeneratedFile &out) {
220 if (!GenerateJavaCodeAccessorMethodForBitwidth(context, 32, out)) {
224 if (!GenerateJavaCodeAccessorMethodForBitwidth(context, 64, out)) {
234 const char *clazz_name, GeneratedFile &out) {
236 out << "/**\n";
237 out << " * @hide\n";
238 out << " */\n";
239 out << "public class " << clazz_name;
240 out.startBlock();
249 ret = GenerateJavaCodeAccessorMethod(context, out);
256 out.endBlock();
276 GeneratedFile out;
277 if (!out.startFile(output_path, filename, context.rsFileName,
282 out << "package " << context.packageName << ";\n\n";
284 bool ret = GenerateAccessorClass(context, clazz_name.c_str(), out);
286 out.closeFile();