📄 queryresultmsg.java
字号:
/** * Set an element of the array 'timeSyncData' */ public void setElement_timeSyncData(int index1, short value) { setUIntElement(offsetBits_timeSyncData(index1), 8, value); } /** * Return the total size, in bytes, of the array 'timeSyncData' */ public static int totalSize_timeSyncData() { return (40 / 8); } /** * Return the total size, in bits, of the array 'timeSyncData' */ public static int totalSizeBits_timeSyncData() { return 40; } /** * Return the size, in bytes, of each element of the array 'timeSyncData' */ public static int elementSize_timeSyncData() { return (8 / 8); } /** * Return the size, in bits, of each element of the array 'timeSyncData' */ public static int elementSizeBits_timeSyncData() { return 8; } /** * Return the number of dimensions in the array 'timeSyncData' */ public static int numDimensions_timeSyncData() { return 1; } /** * Return the number of elements in the array 'timeSyncData' */ public static int numElements_timeSyncData() { return 5; } /** * Return the number of elements in the array 'timeSyncData' * for the given dimension. */ public static int numElements_timeSyncData(int dimension) { int array_dims[] = { 5, }; if (dimension < 0 || dimension >= 1) throw new ArrayIndexOutOfBoundsException(); if (array_dims[dimension] == 0) throw new IllegalArgumentException("Array dimension "+dimension+" has unknown size"); return array_dims[dimension]; } /** * Fill in the array 'timeSyncData' with a String */ public void setString_timeSyncData(String s) { int len = s.length(); int i; for (i = 0; i < len; i++) { setElement_timeSyncData(i, (short)s.charAt(i)); } setElement_timeSyncData(i, (short)0); //null terminate } /** * Read the array 'timeSyncData' as a String */ public String getString_timeSyncData() { char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,5)]; int i; for (i = 0; i < carr.length; i++) { if ((char)getElement_timeSyncData(i) == (char)0) break; carr[i] = (char)getElement_timeSyncData(i); } return new String(carr,0,i); } ///////////////////////////////////////////////////////// // Accessor methods for field: clockCount // Field type: short // Offset (bits): 80 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'clockCount' is signed (false). */ public static boolean isSigned_clockCount() { return false; } /** * Return whether the field 'clockCount' is an array (false). */ public static boolean isArray_clockCount() { return false; } /** * Return the offset (in bytes) of the field 'clockCount' */ public static int offset_clockCount() { return (80 / 8); } /** * Return the offset (in bits) of the field 'clockCount' */ public static int offsetBits_clockCount() { return 80; } /** * Return the value (as a short) of the field 'clockCount' */ public short get_clockCount() { return (short)getSIntElement(offsetBits_clockCount(), 16); } /** * Set the value of the field 'clockCount' */ public void set_clockCount(short value) { setSIntElement(offsetBits_clockCount(), 16, value); } /** * Return the size, in bytes, of the field 'clockCount' */ public static int size_clockCount() { return (16 / 8); } /** * Return the size, in bits, of the field 'clockCount' */ public static int sizeBits_clockCount() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: lastDiff // Field type: short // Offset (bits): 96 // Size (bits): 16 ///////////////////////////////////////////////////////// /** * Return whether the field 'lastDiff' is signed (false). */ public static boolean isSigned_lastDiff() { return false; } /** * Return whether the field 'lastDiff' is an array (false). */ public static boolean isArray_lastDiff() { return false; } /** * Return the offset (in bytes) of the field 'lastDiff' */ public static int offset_lastDiff() { return (96 / 8); } /** * Return the offset (in bits) of the field 'lastDiff' */ public static int offsetBits_lastDiff() { return 96; } /** * Return the value (as a short) of the field 'lastDiff' */ public short get_lastDiff() { return (short)getSIntElement(offsetBits_lastDiff(), 16); } /** * Set the value of the field 'lastDiff' */ public void set_lastDiff(short value) { setSIntElement(offsetBits_lastDiff(), 16, value); } /** * Return the size, in bytes, of the field 'lastDiff' */ public static int size_lastDiff() { return (16 / 8); } /** * Return the size, in bits, of the field 'lastDiff' */ public static int sizeBits_lastDiff() { return 16; } ///////////////////////////////////////////////////////// // Accessor methods for field: d.t.qid // Field type: short // Offset (bits): 112 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'd.t.qid' is signed (false). */ public static boolean isSigned_d_t_qid() { return false; } /** * Return whether the field 'd.t.qid' is an array (false). */ public static boolean isArray_d_t_qid() { return false; } /** * Return the offset (in bytes) of the field 'd.t.qid' */ public static int offset_d_t_qid() { return (112 / 8); } /** * Return the offset (in bits) of the field 'd.t.qid' */ public static int offsetBits_d_t_qid() { return 112; } /** * Return the value (as a short) of the field 'd.t.qid' */ public short get_d_t_qid() { return (short)getUIntElement(offsetBits_d_t_qid(), 8); } /** * Set the value of the field 'd.t.qid' */ public void set_d_t_qid(short value) { setUIntElement(offsetBits_d_t_qid(), 8, value); } /** * Return the size, in bytes, of the field 'd.t.qid' */ public static int size_d_t_qid() { return (8 / 8); } /** * Return the size, in bits, of the field 'd.t.qid' */ public static int sizeBits_d_t_qid() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: d.t.numFields // Field type: byte // Offset (bits): 120 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'd.t.numFields' is signed (false). */ public static boolean isSigned_d_t_numFields() { return false; } /** * Return whether the field 'd.t.numFields' is an array (false). */ public static boolean isArray_d_t_numFields() { return false; } /** * Return the offset (in bytes) of the field 'd.t.numFields' */ public static int offset_d_t_numFields() { return (120 / 8); } /** * Return the offset (in bits) of the field 'd.t.numFields' */ public static int offsetBits_d_t_numFields() { return 120; } /** * Return the value (as a byte) of the field 'd.t.numFields' */ public byte get_d_t_numFields() { return (byte)getSIntElement(offsetBits_d_t_numFields(), 8); } /** * Set the value of the field 'd.t.numFields' */ public void set_d_t_numFields(byte value) { setSIntElement(offsetBits_d_t_numFields(), 8, value); } /** * Return the size, in bytes, of the field 'd.t.numFields' */ public static int size_d_t_numFields() { return (8 / 8); } /** * Return the size, in bits, of the field 'd.t.numFields' */ public static int sizeBits_d_t_numFields() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: d.t.notNull // Field type: int // Offset (bits): 128 // Size (bits): 32 ///////////////////////////////////////////////////////// /** * Return whether the field 'd.t.notNull' is signed (false). */ public static boolean isSigned_d_t_notNull() { return false; } /** * Return whether the field 'd.t.notNull' is an array (false). */ public static boolean isArray_d_t_notNull() { return false; } /** * Return the offset (in bytes) of the field 'd.t.notNull' */ public static int offset_d_t_notNull() { return (128 / 8); } /** * Return the offset (in bits) of the field 'd.t.notNull' */ public static int offsetBits_d_t_notNull() { return 128; } /** * Return the value (as a int) of the field 'd.t.notNull' */ public int get_d_t_notNull() { return (int)getSIntElement(offsetBits_d_t_notNull(), 32); } /** * Set the value of the field 'd.t.notNull' */ public void set_d_t_notNull(int value) { setSIntElement(offsetBits_d_t_notNull(), 32, value); } /** * Return the size, in bytes, of the field 'd.t.notNull' */ public static int size_d_t_notNull() { return (32 / 8); } /** * Return the size, in bits, of the field 'd.t.notNull' */ public static int sizeBits_d_t_notNull() { return 32; } ///////////////////////////////////////////////////////// // Accessor methods for field: d.t.fields // Field type: byte[] // Offset (bits): 160 // Size of each element (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'd.t.fields' is signed (false). */ public static boolean isSigned_d_t_fields() { return false; } /** * Return whether the field 'd.t.fields' is an array (true). */ public static boolean isArray_d_t_fields() { return true; } /** * Return the offset (in bytes) of the field 'd.t.fields' */ public static int offset_d_t_fields(int index1) { int offset = 160; if (index1 < 0) throw new ArrayIndexOutOfBoundsException(); offset += 0 + index1 * 8; return (offset / 8); } /** * Return the offset (in bits) of the field 'd.t.fields' */ public static int offsetBits_d_t_fields(int index1) { int offset = 160; if (index1 < 0) throw new ArrayIndexOutOfBoundsException(); offset += 0 + index1 * 8; return offset; } /** * Return the entire array 'd.t.fields' as a byte[] */ public byte[] get_d_t_fields() { throw new IllegalArgumentException("Cannot get field as array - unknown size"); } /** * Set the contents of the array 'd.t.fields' from the given byte[] */ public void set_d_t_fields(byte[] value) { for (int index0 = 0; index0 < value.length; index0++) { setElement_d_t_fields(index0, value[index0]); } } /** * Return an element (as a byte) of the array 'd.t.fields' */ public byte getElement_d_t_fields(int index1) { return (byte)getSIntElement(offsetBits_d_t_fields(index1), 8); } /** * Set an element of the array 'd.t.fields' */ public void setElement_d_t_fields(int index1, byte value) { setSIntElement(offsetBits_d_t_fields(index1), 8, value); }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -