コード例 #1
0
ファイル: Buffer.hpp プロジェクト: hbao/phonemefeaturedevices
 // Read juint from stream
 juint read_Java_u4(int& index) {
   jint offset = offset_from_byte_index(index);
   index += sizeof(juint);
   return Bytes::get_Java_u4((address)field_base(offset));
 }
コード例 #2
0
ファイル: Buffer.hpp プロジェクト: hbao/phonemefeaturedevices
 // Read jushort from stream
 jushort read_native_u2(int& index) {
   jint offset = offset_from_byte_index(index);
   index += sizeof(jushort);
   return Bytes::get_native_u2((address)field_base(offset));
 }
コード例 #3
0
ファイル: TypeArray.hpp プロジェクト: Sektor/phoneme-qtopia
 void byte_at_put(int index, jbyte value) {
   byte_field_put(offset_from_byte_index(index), value);
 }
コード例 #4
0
ファイル: Buffer.hpp プロジェクト: hbao/phonemefeaturedevices
 // Accessing data in buffer
 jubyte read_u1(int& index) {
   jint offset = offset_from_byte_index(index);
   index += sizeof(jubyte);
   return (jubyte) ubyte_field(offset);
 }
コード例 #5
0
ファイル: TypeArray.hpp プロジェクト: Sektor/phoneme-qtopia
 jbyte byte_at(int index) const {
   return byte_field(offset_from_byte_index(index));
 }