com.groupbyinc.flux.common.sun.jna.Memory.class Maven / Gradle / Ivy
???? 2z )com/groupbyinc/flux/common/sun/jna/Memory *com/groupbyinc/flux/common/sun/jna/Pointer Memory.java 6com/groupbyinc/flux/common/sun/jna/Memory$SharedMemory SharedMemory allocatedMemory Ljava/util/Map; ?Ljava/util/Map;>; buffers 5Lcom/groupbyinc/flux/common/sun/jna/WeakMemoryHolder; size J purge ()V
3com/groupbyinc/flux/common/sun/jna/WeakMemoryHolder clean
disposeAll java/util/LinkedList
java/util/Map keySet ()Ljava/util/Set; ! " (Ljava/util/Collection;)V $ %
& java/util/Collection ( iterator ()Ljava/util/Iterator; * + ) , java/util/Iterator . hasNext ()Z 0 1 / 2 next ()Ljava/lang/Object; 4 5 / 6 dispose 8
9 r +Lcom/groupbyinc/flux/common/sun/jna/Memory; refs CLjava/util/Collection; Ljava/util/Collection; (J)V $
A C "java/lang/IllegalArgumentException E )Allocation size must be greater than zero G (Ljava/lang/String;)V $ I
F J malloc (J)J L M
N peer P Q java/lang/OutOfMemoryError S java/lang/StringBuilder U
V A Cannot allocate X append -(Ljava/lang/String;)Ljava/lang/StringBuilder; Z [
V \ (J)Ljava/lang/StringBuilder; Z ^
V _ bytes a toString ()Ljava/lang/String; c d
V e
T J java/lang/ref/WeakReference h (Ljava/lang/Object;)V $ j
i k put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; m n o this share /(J)Lcom/groupbyinc/flux/common/sun/jna/Pointer; ()J t
u 0(JJ)Lcom/groupbyinc/flux/common/sun/jna/Pointer; r w
x offset boundsCheck (JJ)V { |
} 0(Lcom/groupbyinc/flux/common/sun/jna/Memory;JJ)V $
? sz align .(I)Lcom/groupbyinc/flux/common/sun/jna/Memory; Byte boundary must be positive: ? (I)Ljava/lang/StringBuilder; Z ?
V ????????? 6Insufficient memory to align to the requested boundary ? $Byte boundary must be a power of two ? newPeer newSize mask i I byteBoundary finalize free ? @
? remove &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? java/lang/Throwable ? clear ? @
? valid #java/lang/IndexOutOfBoundsException ? Invalid offset: ?
? J &Bounds exceeds available space : size= ? , offset= ? msg Ljava/lang/String; off read (J[BII)V ? ?
? bOff buf [B index length (J[SII)V ? ?
? [S (J[CII)V ? ?
? [C (J[III)V ? ?
? [I (J[JII)V ? ?
? [J (J[FII)V ? ?
? [F (J[DII)V ? ?
? [D write ? ?
? ? ?
? ? ?
? ? ?
? ? ?
? ? ?
? ? ?
? getByte (J)B ? ?
? getChar (J)C ? ?
? getShort (J)S ? ?
? getInt (J)I ? ?
? getLong ? M
? getFloat (J)F ? ?
? getDouble (J)D ? ?
?
getPointer SIZE ? s
getByteBuffer (JJ)Ljava/nio/ByteBuffer;
@(Ljava/lang/Object;Lcom/groupbyinc/flux/common/sun/jna/Memory;)V m
b Ljava/nio/ByteBuffer; getString '(JLjava/lang/String;)Ljava/lang/String;
encoding
getWideString (J)Ljava/lang/String;
setByte (JB)V
value B setChar (JC)V )com/groupbyinc/flux/common/sun/jna/Native!
WCHAR_SIZE# ? "$
& C setShort (JS)V)*
+ S setInt (JI)V./
0 setLong2 |
3 setFloat (JF)V56
7 F setDouble (JD)V:;
< D
setPointer 0(JLcom/groupbyinc/flux/common/sun/jna/Pointer;)V?@
A ,Lcom/groupbyinc/flux/common/sun/jna/Pointer; setString ((JLjava/lang/String;Ljava/lang/String;)V getBytes ((Ljava/lang/String;Ljava/lang/String;)[BFG
"HDE
J
setWideString (JLjava/lang/String;)V java/lang/StringN ()I ?P
OQLM
S allocated@0xU java/lang/LongW toHexStringY
XZ (\ bytes)^
" ? p
" N dump (JI)Ljava/lang/String;cd
e java/util/WeakHashMaph
i A java/util/Collectionsk synchronizedMap (Ljava/util/Map;)Ljava/util/Map;mn
lo
A Signature Code LineNumberTable LocalVariableTable LocalVariableTypeTable
StackMapTable
SourceFile InnerClasses !
r
5 s # ? ? ? t
A B s ? 2? Y? ? # ? 'K*? - L+? 3 ? +? 7 ? M,? :??? u * ; <