equal
deleted
inserted
replaced
202 } |
202 } |
203 |
203 |
204 // The result should be a [B |
204 // The result should be a [B |
205 oop res = (oop)result.get_jobject(); |
205 oop res = (oop)result.get_jobject(); |
206 assert(res->is_typeArray(), "just checking"); |
206 assert(res->is_typeArray(), "just checking"); |
207 assert(typeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking"); |
207 assert(TypeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking"); |
208 |
208 |
209 // copy the bytes to the output stream |
209 // copy the bytes to the output stream |
210 typeArrayOop ba = typeArrayOop(res); |
210 typeArrayOop ba = typeArrayOop(res); |
211 jbyte* addr = typeArrayOop(res)->byte_at_addr(0); |
211 jbyte* addr = typeArrayOop(res)->byte_at_addr(0); |
212 output()->print_raw((const char*)addr, ba->length()); |
212 output()->print_raw((const char*)addr, ba->length()); |