| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum | |
| pack-priv static interface | Message.
Interface defining a method to extract a specific data type. |
| pack-priv static record | Message.
Additional options to optimize value extraction. |
| Modifier and Type | Field and Description |
|---|---|
| private Object[] | |
| private boolean | |
| private byte[] | |
| private long | |
| private static final int | BUFFERINCREMENT
Steps to increment the buffer array. |
| private int | |
| private long | |
| private static final Message. | DEFAULT_OPTIONS
Default extraction options. |
| private boolean | |
| private final List | |
| private byte | |
| private static final AtomicLong | |
| private final Object[] | |
| protected final Logger | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final int | OFFSET_DATA
Position of data offset in int array. |
| private static final int | OFFSET_SIG
Position of signature offset in int array. |
| private byte[] | |
| private static byte[][] | padding
Keep a static reference to each size of padding array to prevent allocation. |
| private int | |
| private int | |
| public static final byte | PROTOCOL
The current protocol major version. |
| private byte | |
| private long | |
| private byte | |
| private byte[][] |
| Access | Constructor and Description |
|---|---|
| protected | Message(byte
The endianness to create the message. _endian, byte The message type. _type, byte Any message flags. _flags)Create a message; only to be called by sub-classes. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: The new, aligned, counter.The current counter. _current, byte The type to align to. _type)Align a counter to the given type. |
| protected void | |
| protected void | |
| protected void | |
| protected void | appendint(long
The integer to marshall. _l, int The byte-width of the int. _width)Marshalls an integer of a given width and appends it to the message. |
| private int | |
| protected Object[] | Returns: Object arrayheader type (one of _header, String HeaderField)argument type (one of _argType, Object ArgumentType)value _value)Creates a message header. |
| protected long | Returns: longThe buffer to demarshall from. _buf, int The offset to demarshall from. _ofs, int The byte-width of the int. _width)Demarshalls an integer of a given width from a buffer. |
| public static long | Returns: longThe buffer to demarshall from. _buf, int The offset to demarshall from. _ofs, byte The endianness to use in demarshalling. _endian, int The byte-width of the int. _width)Demarshalls an integer of a given width from a buffer. |
| public static long | Returns: longThe buffer to demarshall from. _buf, int The offset to demarshall from. _ofs, int The byte-width of the int. _width)Demarshalls an integer of a given width from a buffer using big-endian format. |
| public static long | Returns: longThe buffer to demarshall from. _buf, int The offset to demarshall from. _ofs, int The byte-width of the int. _width)Demarshalls an integer of a given width from a buffer using little-endian format. |
| pack-priv String | |
| private void | |
| protected Object[] | Returns: The demarshalled value(s).The D-Bus signature(s) of the value(s). _signature, byte[] The buffer to demarshall from. _dataBuf, int The offset into the data buffer to start. _offsets, Message.additional options _optionsDemarshall values from a buffer. |
| protected Object[] | Returns: The demarshalled value(s).The D-Bus signature(s) of the value(s). _signature, byte[] The buffer to demarshall from. _dataBuf, int[] An array of two ints, which holds the position of the current signature offset and the current
offset of the data buffer. These values will be updated to the start of the next value after
demarshalling. _offsets, Message.additional options _optionsDemarshall values from a buffer. |
| pack-priv Object[] | extract(String _signature, byte[] _dataBuf, int[] _offsets, Message.
|
| private Object[] | Returns: object arraylist of desired constructor arguments _constructorArgs)Creates a object array containing all objects which should be used to call a constructor. |
| private Object | Returns: Objectsignature string (as byte array) of the content of the array _signatureBuf, byte[] buffer containing the array to read _dataBuf, int[] current offsets in the buffer (will be updated) _offsets, Message.additional options _options,method to be called for every entry contained in the array _extractMethodExtracts an array from the data received on bus. |
| private Object | Returns: Objectbuffer holding the byte _dataBuf, int[] offset position in buffer (will be updated) _offsets)Extracts a byte from the data received on bus. |
| pack-priv Object[] | Returns: Object array containing header dataD-Bus serialized data of type a(yv) _headers)Extracts the header information from the given byte array. |
| private Object | Returns: The demarshalled value.A buffer of the D-Bus signature. _signatureBuf, byte[] The buffer to demarshall from. _dataBuf, int[] An array of two ints, which holds the position of the current signature offset and the current
offset of the data buffer. _offsets, Message.extract options _optionsDemarshall one value from a buffer. |
| private Object | Returns: Objectsignature (as byte array) defining the struct content _signatureBuf, byte[] buffer containing the struct _dataBuf, int[] offset position in buffer (will be updated) _offsets, Message.extract options _options,method to be called for every entry contained of the struct _extractMethodExtracts a struct from the data received on bus. |
| private Object | Returns: Object / Variantbuffer containing the variant _dataBuf, int[] current offsets in the buffer (will be updated) _offsets, Message.extract options _options,method to create new _variantFactory)Variant objects (or other object types)Extracts a |
| public static int | |
| pack-priv long | |
| protected long | |
| public String | |
| public byte | |
| public List | |
| public int | |
| protected Object[] | |
| protected Object | Returns: The value of the field or null if unset.The field to return. _type)Returns the value of the header field of a given field. |
| public static String | |
| public String | |
| public String | |
| public Object[] | Returns: object arrayParses and returns the parameters to this message as an Object array. |
| public Object[] | Returns: object arraylist of desired constructor arguments _constructorArgs)Parses and returns the parameters to this message as an Object array. |
| public String | |
| pack-priv byte | |
| public long | Returns: The reply serial, or 0 if it is not a reply.If this is a reply to a message, this returns its serial. |
| public synchronized long | |
| public String | |
| public String | |
| public byte | |
| public byte[][] | |
| protected void | marshallint(long
The integer to marshall. _l, byte[] The buffer to marshall to. _buf, int The offset to marshall to. _ofs, int The byte-width of the int. _width)Marshalls an integer of a given width into a buffer. |
| public static void | marshallintBig(long
The integer to marshall. _l, byte[] The buffer to marshall to. _buf, int The offset to marshall to. _ofs, int The byte-width of the int. _width)Marshalls an integer of a given width into a buffer using big-endian format. |
| public static void | marshallintLittle(long
The integer to marshall. _l, byte[] The buffer to demarshall to. _buf, int The offset to demarshall to. _ofs, int The byte-width of the int. _width)Marshalls an integer of a given width into a buffer using little-endian format. |
| private Object | Returns: Object arraysignature string (as byte array) containing the type of array _signatureBuf, byte[] buffer containing the array _dataBuf, int[] current offset in buffer (will be updated) _offsets, long size of a byte _size, byte data offset padding width when reading primitives (except byte) _algn, int length of the array _length, Message.extract options _options,method to be called for every entry contained in the array if not primitive array _extractMethodWill create primitive arrays when an array is read. |
| protected void | |
| protected void | padAndMarshall(List<Object> _hargs, long _serial, String _sig, Object... _args)
Adds message padding and marshalling. |
| pack-priv void | populate(byte[]
D-Bus serialized data of type yyyuu _msg, byte[] D-Bus serialized data of type a(yv) _headers, byte[] D-Bus serialized data of the signature defined in headers. _body, List<FileDescriptor> _descriptors)Create a message from wire-format data. |
| private void | |
| private int | |
| private Object | Returns: ObjectDBus signature string as byte array _signatureBuf, byte[] buffer with header data _dataBuf, int[] current offsets _offsets, Message.additional options _optionsSpecial lightweight version to read the variant objects in DBus message header. |
| public void | |
| protected void | |
| protected void | |
| protected synchronized void | |
| public void | |
| protected void | |
| public String | |
| public void | |
| pack-priv static List | Returns: List of ConstructorArgTypelist of constructor types to check _constructorArgs, List<Type> list of desired types _dataType)Compares a list of Type[] with a list of desired types. |