📄 querymsg.java
字号:
} return tmp; } /** * Set the contents of the array 'u.field.name' from the given byte[] */ public void set_u_field_name(byte[] value) { for (int index0 = 0; index0 < value.length; index0++) { setElement_u_field_name(index0, value[index0]); } } /** * Return an element (as a byte) of the array 'u.field.name' */ public byte getElement_u_field_name(int index1) { return (byte)getSIntElement(offsetBits_u_field_name(index1), 8); } /** * Set an element of the array 'u.field.name' */ public void setElement_u_field_name(int index1, byte value) { setSIntElement(offsetBits_u_field_name(index1), 8, value); } /** * Return the total size, in bytes, of the array 'u.field.name' */ public static int totalSize_u_field_name() { return (64 / 8); } /** * Return the total size, in bits, of the array 'u.field.name' */ public static int totalSizeBits_u_field_name() { return 64; } /** * Return the size, in bytes, of each element of the array 'u.field.name' */ public static int elementSize_u_field_name() { return (8 / 8); } /** * Return the size, in bits, of each element of the array 'u.field.name' */ public static int elementSizeBits_u_field_name() { return 8; } /** * Return the number of dimensions in the array 'u.field.name' */ public static int numDimensions_u_field_name() { return 1; } /** * Return the number of elements in the array 'u.field.name' */ public static int numElements_u_field_name() { return 8; } /** * Return the number of elements in the array 'u.field.name' * for the given dimension. */ public static int numElements_u_field_name(int dimension) { int array_dims[] = { 8, }; 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 'u.field.name' with a String */ public void setString_u_field_name(String s) { int len = s.length(); int i; for (i = 0; i < len; i++) { setElement_u_field_name(i, (byte)s.charAt(i)); } setElement_u_field_name(i, (byte)0); //null terminate } /** * Read the array 'u.field.name' as a String */ public String getString_u_field_name() { char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,8)]; int i; for (i = 0; i < carr.length; i++) { if ((char)getElement_u_field_name(i) == (char)0) break; carr[i] = (char)getElement_u_field_name(i); } return new String(carr,0,i); } ///////////////////////////////////////////////////////// // Accessor methods for field: u.field.op // Field type: short // Offset (bits): 216 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'u.field.op' is signed (false). */ public static boolean isSigned_u_field_op() { return false; } /** * Return whether the field 'u.field.op' is an array (false). */ public static boolean isArray_u_field_op() { return false; } /** * Return the offset (in bytes) of the field 'u.field.op' */ public static int offset_u_field_op() { return (216 / 8); } /** * Return the offset (in bits) of the field 'u.field.op' */ public static int offsetBits_u_field_op() { return 216; } /** * Return the value (as a short) of the field 'u.field.op' */ public short get_u_field_op() { return (short)getUIntElement(offsetBits_u_field_op(), 8); } /** * Set the value of the field 'u.field.op' */ public void set_u_field_op(short value) { setUIntElement(offsetBits_u_field_op(), 8, value); } /** * Return the size, in bytes, of the field 'u.field.op' */ public static int size_u_field_op() { return (8 / 8); } /** * Return the size, in bits, of the field 'u.field.op' */ public static int sizeBits_u_field_op() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: u.field.type // Field type: short // Offset (bits): 224 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'u.field.type' is signed (false). */ public static boolean isSigned_u_field_type() { return false; } /** * Return whether the field 'u.field.type' is an array (false). */ public static boolean isArray_u_field_type() { return false; } /** * Return the offset (in bytes) of the field 'u.field.type' */ public static int offset_u_field_type() { return (224 / 8); } /** * Return the offset (in bits) of the field 'u.field.type' */ public static int offsetBits_u_field_type() { return 224; } /** * Return the value (as a short) of the field 'u.field.type' */ public short get_u_field_type() { return (short)getUIntElement(offsetBits_u_field_type(), 8); } /** * Set the value of the field 'u.field.type' */ public void set_u_field_type(short value) { setUIntElement(offsetBits_u_field_type(), 8, value); } /** * Return the size, in bytes, of the field 'u.field.type' */ public static int size_u_field_type() { return (8 / 8); } /** * Return the size, in bits, of the field 'u.field.type' */ public static int sizeBits_u_field_type() { return 8; } ///////////////////////////////////////////////////////// // Accessor methods for field: u.expr.opType // Field type: byte // Offset (bits): 152 // Size (bits): 6 ///////////////////////////////////////////////////////// /** * Return whether the field 'u.expr.opType' is signed (false). */ public static boolean isSigned_u_expr_opType() { return false; } /** * Return whether the field 'u.expr.opType' is an array (false). */ public static boolean isArray_u_expr_opType() { return false; } /** * Return the offset (in bytes) of the field 'u.expr.opType' */ public static int offset_u_expr_opType() { return (152 / 8); } /** * Return the offset (in bits) of the field 'u.expr.opType' */ public static int offsetBits_u_expr_opType() { return 152; } /** * Return the value (as a byte) of the field 'u.expr.opType' */ public byte get_u_expr_opType() { return (byte)getSIntElement(offsetBits_u_expr_opType(), 6); } /** * Set the value of the field 'u.expr.opType' */ public void set_u_expr_opType(byte value) { setSIntElement(offsetBits_u_expr_opType(), 6, value); } /** * Return the size, in bytes, of the field 'u.expr.opType' * WARNING: This field is not an even-sized number of bytes (6 bits). */ public static int size_u_expr_opType() { return (6 / 8) + 1; } /** * Return the size, in bits, of the field 'u.expr.opType' */ public static int sizeBits_u_expr_opType() { return 6; } ///////////////////////////////////////////////////////// // Accessor methods for field: u.expr.isStringExp // Field type: byte // Offset (bits): 158 // Size (bits): 1 ///////////////////////////////////////////////////////// /** * Return whether the field 'u.expr.isStringExp' is signed (false). */ public static boolean isSigned_u_expr_isStringExp() { return false; } /** * Return whether the field 'u.expr.isStringExp' is an array (false). */ public static boolean isArray_u_expr_isStringExp() { return false; } /** * Return the offset (in bytes) of the field 'u.expr.isStringExp' * WARNING: This field is not byte-aligned (bit offset 158). */ public static int offset_u_expr_isStringExp() { return (158 / 8); } /** * Return the offset (in bits) of the field 'u.expr.isStringExp' */ public static int offsetBits_u_expr_isStringExp() { return 158; } /** * Return the value (as a byte) of the field 'u.expr.isStringExp' */ public byte get_u_expr_isStringExp() { return (byte)getUIntElement(offsetBits_u_expr_isStringExp(), 1); } /** * Set the value of the field 'u.expr.isStringExp' */ public void set_u_expr_isStringExp(byte value) { setUIntElement(offsetBits_u_expr_isStringExp(), 1, value); } /** * Return the size, in bytes, of the field 'u.expr.isStringExp' * WARNING: This field is not an even-sized number of bytes (1 bits). */ public static int size_u_expr_isStringExp() { return (1 / 8) + 1; } /** * Return the size, in bits, of the field 'u.expr.isStringExp' */ public static int sizeBits_u_expr_isStringExp() { return 1; } ///////////////////////////////////////////////////////// // Accessor methods for field: u.expr.success // Field type: byte // Offset (bits): 159 // Size (bits): 1 ///////////////////////////////////////////////////////// /** * Return whether the field 'u.expr.success' is signed (false). */ public static boolean isSigned_u_expr_success() { return false; } /** * Return whether the field 'u.expr.success' is an array (false). */ public static boolean isArray_u_expr_success() { return false; } /** * Return the offset (in bytes) of the field 'u.expr.success' * WARNING: This field is not byte-aligned (bit offset 159). */ public static int offset_u_expr_success() { return (159 / 8); } /** * Return the offset (in bits) of the field 'u.expr.success' */ public static int offsetBits_u_expr_success() { return 159; } /** * Return the value (as a byte) of the field 'u.expr.success' */ public byte get_u_expr_success() { return (byte)getUIntElement(offsetBits_u_expr_success(), 1); } /** * Set the value of the field 'u.expr.success' */ public void set_u_expr_success(byte value) { setUIntElement(offsetBits_u_expr_success(), 1, value); } /** * Return the size, in bytes, of the field 'u.expr.success' * WARNING: This field is not an even-sized number of bytes (1 bits). */ public static int size_u_expr_success() { return (1 / 8) + 1; } /** * Return the size, in bits, of the field 'u.expr.success' */ public static int sizeBits_u_expr_success() { return 1; } ///////////////////////////////////////////////////////// // Accessor methods for field: u.expr.idx // Field type: byte // Offset (bits): 160 // Size (bits): 8 ///////////////////////////////////////////////////////// /** * Return whether the field 'u.expr.idx' is signed (false). */ public static boolean isSigned_u_expr_idx() { return false; } /** * Return whether the field 'u.expr.idx' is an array (false). */ public static boolean isArray_u_expr_idx() { return false; } /** * Return the offset (in bytes) of the field 'u.expr.idx' */ public static int offset_u_expr_idx() { return (160 / 8); } /** * Return the offset (in bits) of the field 'u.expr.idx' */ public static int offsetBits_u_expr_idx() { return 160; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -