equal
deleted
inserted
replaced
86 } |
86 } |
87 |
87 |
88 // The result should be a [B |
88 // The result should be a [B |
89 oop res = (oop)result.get_jobject(); |
89 oop res = (oop)result.get_jobject(); |
90 assert(res->is_typeArray(), "just checking"); |
90 assert(res->is_typeArray(), "just checking"); |
91 assert(typeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking"); |
91 assert(TypeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking"); |
92 |
92 |
93 // copy the bytes to the output stream |
93 // copy the bytes to the output stream |
94 typeArrayOop ba = typeArrayOop(res); |
94 typeArrayOop ba = typeArrayOop(res); |
95 jbyte* addr = typeArrayOop(res)->byte_at_addr(0); |
95 jbyte* addr = typeArrayOop(res)->byte_at_addr(0); |
96 out->print_raw((const char*)addr, ba->length()); |
96 out->print_raw((const char*)addr, ba->length()); |