com.groupbyinc.flux.common.sun.jna.Structure.class Maven / Gradle / Ivy
???? 2? ,com/groupbyinc/flux/common/sun/jna/Structure java/lang/Object Structure.java :com/groupbyinc/flux/common/sun/jna/Structure$AutoAllocated
AutoAllocated 4com/groupbyinc/flux/common/sun/jna/Structure$FFIType FFIType 8com/groupbyinc/flux/common/sun/jna/Structure$StructField StructField 7com/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo
LayoutInfo 9com/groupbyinc/flux/common/sun/jna/Structure$StructureSet StructureSet 8com/groupbyinc/flux/common/sun/jna/Structure$ByReference ByReference 4com/groupbyinc/flux/common/sun/jna/Structure$ByValue ByValue .com/groupbyinc/flux/common/sun/jna/Structure$3 .com/groupbyinc/flux/common/sun/jna/Structure$2 .com/groupbyinc/flux/common/sun/jna/Structure$1
ALIGN_DEFAULT I
ALIGN_NONE
ALIGN_GNUC
ALIGN_MSVC CALCULATE_SIZE????
layoutInfo Ljava/util/Map; ^Ljava/util/Map;Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;>;
fieldOrder ILjava/util/Map;Ljava/util/List;>; memory ,Lcom/groupbyinc/flux/common/sun/jna/Pointer; size alignType encoding Ljava/lang/String; actualAlignType structAlignment structFields ]Ljava/util/Map;
nativeStrings 5Ljava/util/Map;
typeMapper /Lcom/groupbyinc/flux/common/sun/jna/TypeMapper; typeInfo J autoRead Z autoWrite array /[Lcom/groupbyinc/flux/common/sun/jna/Structure;
readCalled reads Ljava/lang/ThreadLocal; ?Ljava/lang/ThreadLocal;>; busy XLjava/lang/ThreadLocal;>; PLACEHOLDER_MEMORY ()V (I)V M O
P this .Lcom/groupbyinc/flux/common/sun/jna/Structure; 2(Lcom/groupbyinc/flux/common/sun/jna/TypeMapper;)V _(Lcom/groupbyinc/flux/common/sun/jna/Pointer;ILcom/groupbyinc/flux/common/sun/jna/TypeMapper;)V M U
V mapper 0(Lcom/groupbyinc/flux/common/sun/jna/Pointer;I)V M Y
Z 3(ILcom/groupbyinc/flux/common/sun/jna/TypeMapper;)V /(Lcom/groupbyinc/flux/common/sun/jna/Pointer;)V p M N
_ 3 " a java/util/HashMap c
d _ ; - f A B h C B j setAlignType l O
m getClass ()Ljava/lang/Class; o p
q )com/groupbyinc/flux/common/sun/jna/Native s getStringEncoding %(Ljava/lang/Class;)Ljava/lang/String; u v
t w setStringEncoding (Ljava/lang/String;)V y z
{ initializeTypeMapper } T
~ validateFields ? N
? useMemory 1(Lcom/groupbyinc/flux/common/sun/jna/Pointer;IZ)V ? ?
? *com/groupbyinc/flux/common/sun/jna/Pointer ? -com/groupbyinc/flux/common/sun/jna/TypeMapper ? allocateMemory ? O
? initializeFields ? N
? fields ()Ljava/util/Map; 9 - ?
getTypeMapper 1()Lcom/groupbyinc/flux/common/sun/jna/TypeMapper; = > ? B(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/sun/jna/TypeMapper; ? ?
t ?
layoutChanged ? N
? 1 2 ? ensureAllocated ? N
? 5 6 ? ()Ljava/lang/String; 4 " ? getStructureAlignment (Ljava/lang/Class;)I ? ?
t ? +com/groupbyinc/flux/common/sun/jna/Platform ? isWindows ()Z ? ?
? ? 7 " ? autoAllocate .(I)Lcom/groupbyinc/flux/common/sun/jna/Memory;
P ? Y
? m offset #java/lang/IndexOutOfBoundsException ?
java/util/Map ? clear ? N ? ? ()I 3 ?
? read (J[BII)V ? ?
? ? write ? ?
? ? share /(J)Lcom/groupbyinc/flux/common/sun/jna/Pointer; ? ?
? ?
calculateSize (Z)I ? ?
? 0(JJ)Lcom/groupbyinc/flux/common/sun/jna/Pointer; ? ?
? ? D E ? F B ? "java/lang/IllegalArgumentException ? (Structure exceeds provided memory bounds ? *(Ljava/lang/String;Ljava/lang/Throwable;)V M ?
? ? buf [B e %Ljava/lang/IndexOutOfBoundsException; force (Z)V ? ?
? ? ?
? (ZZ)I ? ?
? avoidFFIType java/lang/StringBuilder ?
? _ *Structure size must be greater than zero: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? toString ? ?
? ? M z
? ? ?
(J)V ?
?
getPointer .()Lcom/groupbyinc/flux/common/sun/jna/Pointer; ()Ljava/util/Set; J H
java/lang/ThreadLocal get ()Ljava/lang/Object;
java/util/Set reading G H conditionalAutoRead A N
L 2 J
contains (Ljava/lang/Object;)Z add"# ?
%
' put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;)* ?+ ? ?
- values ()Ljava/util/Collection;/0 ?1 java/util/Collection3 iterator ()Ljava/util/Iterator;5647 java/util/Iterator9 hasNext; ?:< next>:? readField N(Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;)Ljava/lang/Object;AB
C removeEF &(Ljava/lang/Object;)Ljava/lang/Object;H ?IEH ?K java/lang/ThrowableM structField :Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField; fieldOffset (Ljava/lang/String;)I No such field: S ? "
U name f &(Ljava/lang/String;)Ljava/lang/Object;
getFieldValue -(Ljava/lang/reflect/Field;)Ljava/lang/Object; java/lang/Exception\ java/lang/reflect/Field^
_I java/lang/Errora Exception reading field 'c getNamee ?
_f ' in h -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?j
?k
b ? Ljava/lang/Exception; field Ljava/lang/reflect/Field;
setFieldValue .(Ljava/lang/reflect/Field;Ljava/lang/Object;)V /(Ljava/lang/reflect/Field;Ljava/lang/Object;Z)Vqs
t value Ljava/lang/Object; java/lang/IllegalAccessExceptionx set '(Ljava/lang/Object;Ljava/lang/Object;)Vz{
_| getModifiers~ ?
_ java/lang/reflect/Modifier? isFinal (I)Z??
?? 'java/lang/UnsupportedOperationException? >This VM does not support Structures with final fields (field '? ' within ? )?
? ? %Attempt to write to read-only field '? 'Unexpectedly unable to write to field '? modifiers "Ljava/lang/IllegalAccessException;
overrideFinal updateStructureByReference ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/sun/jna/Structure;Lcom/groupbyinc/flux/common/sun/jna/Pointer;)Lcom/groupbyinc/flux/common/sun/jna/Structure; equals?
??
? newInstance m(Ljava/lang/Class;Lcom/groupbyinc/flux/common/sun/jna/Pointer;)Lcom/groupbyinc/flux/common/sun/jna/Structure;??
? N
? s1 type Ljava/lang/Class<*>; Ljava/lang/Class; s address??
?
readConverter 8Lcom/groupbyinc/flux/common/sun/jna/FromNativeConverter;??
? 6com/groupbyinc/flux/common/sun/jna/FromNativeConverter?
nativeType? p?? java/lang/Class? isAssignableFrom (Ljava/lang/Class;)Z??
?? +com/groupbyinc/flux/common/sun/jna/Callback? HAS_BUFFERS? B ?? java/nio/Buffer? /com/groupbyinc/flux/common/sun/jna/NativeMapped? isArray? ?
??op
?Z[
? java/lang/String? ?
?? getString '(JLjava/lang/String;)Ljava/lang/String;??
?? getValue 8(JLjava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;??
?? context 6Lcom/groupbyinc/flux/common/sun/jna/FromNativeContext;??
?
fromNative \(Ljava/lang/Object;Lcom/groupbyinc/flux/common/sun/jna/FromNativeContext;)Ljava/lang/Object;???? *com/groupbyinc/flux/common/sun/jna/WString?W 6
? .ptr? .val? result fieldType currentValue getTypeInfo?
?
isVolatile? B
?
writeField =(Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;)V??
? sf '(Ljava/lang/String;Ljava/lang/Object;)Vqr
?
isReadOnly? B
? writeConverter 6Lcom/groupbyinc/flux/common/sun/jna/ToNativeConverter;??
? 8com/groupbyinc/flux/common/sun/jna/StructureWriteContext? J(Lcom/groupbyinc/flux/common/sun/jna/Structure;Ljava/lang/reflect/Field;)V M
? 4com/groupbyinc/flux/common/sun/jna/ToNativeConverter toNative Z(Ljava/lang/Object;Lcom/groupbyinc/flux/common/sun/jna/ToNativeContext;)Ljava/lang/Object;? containsKey
? /com/groupbyinc/flux/common/sun/jna/NativeString
? (Ljava/lang/String;Z)V M
'(Ljava/lang/String;Ljava/lang/String;)V M
' setValue '(JLjava/lang/Object;Ljava/lang/Class;)V
? Structure field " " was declared as (native type ! +, which is not supported within a Structure# nativeString 1Lcom/groupbyinc/flux/common/sun/jna/NativeString; wide msg $Ljava/lang/IllegalArgumentException; converter
getFieldOrder ()Ljava/util/List;
setFieldOrder ([Ljava/lang/String;)V Ljava/lang/Deprecated; 4This method is obsolete, use getFieldOrder() instead0
b [Ljava/lang/String;
sortFields #(Ljava/util/List;Ljava/util/List;)V java/util/List67 ? (I)Ljava/lang/Object;97:
?? java/util/Collections= swap (Ljava/util/List;II)V?@
>A i +Ljava/util/List; Ljava/util/List; names $Ljava/util/List; getFieldList java/util/ArrayListI
J _ getDeclaredFields ()[Ljava/lang/reflect/Field;LM
?N [Ljava/lang/reflect/Field;P isStaticR?
?S isPublicU?
?V7# addAll (ILjava/util/Collection;)ZYZ7[
getSuperclass] p
?^ classFields cls flist / - c+,
e list clazz createFieldsOrder 5(Ljava/util/List;[Ljava/lang/String;)Ljava/util/List; java/util/Arraysk asList %([Ljava/lang/Object;)Ljava/util/List;mn
lo 2(Ljava/util/List;Ljava/util/List;)Ljava/util/List;iq
r
baseFields extraFields
J P (Ljava/util/Collection;)ZYw7x unmodifiableList "(Ljava/util/List;)Ljava/util/List;z{
>| $(Ljava/lang/String;)Ljava/util/List;
singletonList $(Ljava/lang/Object;)Ljava/util/List;?
>? %([Ljava/lang/String;)Ljava/util/List; sort ((Ljava/util/Collection;)Ljava/util/List; (Ljava/util/Collection;)V M?
J? (Ljava/util/List;)V??
>? c Ljava/util/Collection<+TT;>; Ljava/util/Collection; Ljava/util/List; getFields (Z)Ljava/util/List;H,
? java/util/HashSet?
? _77 /,
? Structure.getFieldOrder() on ? does not provide enough names [? ] (???
? ) to match declared fields [?
??? returns names (? +) which do not match declared field names (?45
? #Ljava/util/Set; Ljava/util/Set; orderedNames B(Ljava/lang/Class;Lcom/groupbyinc/flux/common/sun/jna/Structure;)I 3?
? , - ?
access$000 <(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;)Z??
?
access$100 <(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;)I??
? info 9Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo; sz
access$200??
?
access$300 j(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;)Lcom/groupbyinc/flux/common/sun/jna/TypeMapper;??
? deriveLayout =(ZZ)Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;??
?
access$400??
? 8 " ?
access$500 J(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;)Ljava/util/Map;??
?
validateField &(Ljava/lang/String;Ljava/lang/Class;)V getToNativeConverter I(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/sun/jna/ToNativeConverter;?? ????
? getComponentType? p
??
getNativeSize? ?
? Invalid Structure field in ? , field name '? ' (? ): ?
getMessage? ?
?? getType? p
_???
? 3(Lcom/groupbyinc/flux/common/sun/jna/Structure$1;)V M?
?
access$202 =(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;I)I??
?
access$302 ?(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;Lcom/groupbyinc/flux/common/sun/jna/TypeMapper;)Lcom/groupbyinc/flux/common/sun/jna/TypeMapper;??
?
access$002 =(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;Z)Z??
?
_??
? RO_FIELDS B ? 2This VM does not support read-only fields (field '
setAccessible ?
_ isInterface ?
? Structure Callback field ' ' must be an interface lNested Structure arrays must use a derived Structure type so that the size of the elements can be determined java/lang/IllegalStateException Array fields must be initialized
8com/groupbyinc/flux/common/sun/jna/NativeMappedConverter getInstance M(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/sun/jna/NativeMappedConverter;
? 7com/groupbyinc/flux/common/sun/jna/StructureReadContext
! getFromNativeConverter K(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/sun/jna/FromNativeConverter;#$ ?% 5Structures require bidirectional type conversion for ' initializeField >(Ljava/lang/reflect/Field;Ljava/lang/Class;)Ljava/lang/Object;)*
+ &(Ljava/lang/Class;Ljava/lang/Object;)I?-
.
a getNativeAlignment '(Ljava/lang/Class;Ljava/lang/Object;Z)I12
3 #Field alignment is zero for field '5 java/lang/Math7 max (II)I9:
8;
access$402=?
> (com/groupbyinc/flux/common/sun/jna/Union@
access$700 u(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;)Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;BC
D
access$702 ?(Lcom/groupbyinc/flux/common/sun/jna/Structure$LayoutInfo;Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;)Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;FG
H
addPaddingJ:
K
access$102M?
N
Structure P 8 has unknown or zero size (ensure all fields are public)R tc :Lcom/groupbyinc/flux/common/sun/jna/NativeMappedConverter; fieldAlignment /Ljava/util/Iterator; Ljava/util/Iterator; calculatedSize
firstField o (Can't determine size of nested structure\ defaultValue 3()Lcom/groupbyinc/flux/common/sun/jna/NativeMapped;^_
` (I)I alignment getStructAlignment 2com/groupbyinc/flux/common/sun/jna/ToNativeContexte
f _
t. isPrimitivej ?
?k java/lang/Longm java/lang/Integero java/lang/Shortq java/lang/Characters java/lang/Byteu java/lang/Booleanw java/lang/Floaty java/lang/Double{ +com/groupbyinc/flux/common/sun/jna/Function} SIZE " ??d ?
? Type ? has unknown native alignment? min?:
8? isMac? ?
?? isPPC? ?
??
MAX_ALIGNMENT? " t? isAIX? ?
?? TYPE?? |? isFirstElement jna.dump_memory?
getBoolean (Ljava/lang/String;)Z??
x? (Z)Ljava/lang/String; ??
? (IZZ)Ljava/lang/String; ??
? debug format
?f .? lastIndexOf?R
?? substring (I)Ljava/lang/String;??
?? dot line.separator? java/lang/System? getProperty &(Ljava/lang/String;)Ljava/lang/String;??
??? v
? (? )com/groupbyinc/flux/common/sun/jna/Memory? (? bytes)? ? ...}? [? java/lang/reflect/Array? getLength (Ljava/lang/Object;)I??
?? ]? %s %s%s@0x%X? valueOf (I)Ljava/lang/Integer;??
p? 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
?? =? 0x%08X? 0x%04X? 0x%02X? 0x%01X? &(Ljava/lang/Object;)Ljava/lang/String;??
?? trim? ?
?? }? memory dump? getByteArray (JI)[B??
?? ? 0? toHexString??
p? {? idx index PLjava/util/Iterator;
BYTES_PER_ROW indent showContents
dumpMemory LS prefix contents toArray `([Lcom/groupbyinc/flux/common/sun/jna/Structure;)[Lcom/groupbyinc/flux/common/sun/jna/Structure; ()J 3
?
? ]
+Lcom/groupbyinc/flux/common/sun/jna/Memory; requiredSize 2(I)[Lcom/groupbyinc/flux/common/sun/jna/Structure; &(Ljava/lang/Class;I)Ljava/lang/Object;?
? E
baseClass
dataEquals 1(Lcom/groupbyinc/flux/common/sun/jna/Structure;)Z 2(Lcom/groupbyinc/flux/common/sun/jna/Structure;Z)Z
? N
data ref hashCode! ?
?"
"
cacheTypeInfo peer&