Ags.BufferUtil

Fields

None

Methods

class

char_buffer_read_complex (cbuffer, byte_order)

class

char_buffer_read_double (cbuffer, byte_order)

class

char_buffer_read_float (cbuffer, byte_order)

class

char_buffer_read_s16 (cbuffer, byte_order)

class

char_buffer_read_s24 (cbuffer, byte_order)

class

char_buffer_read_s32 (cbuffer, byte_order)

class

char_buffer_read_s64 (cbuffer, byte_order)

class

char_buffer_read_s8 (cbuffer, byte_order)

class

char_buffer_swap_bytes (cbuffer, word_size, buffer_size)

class

char_buffer_to_complex (cbuffer, buffer_size)

class

char_buffer_to_double (cbuffer, buffer_size)

class

char_buffer_to_float (cbuffer, buffer_size)

class

char_buffer_to_s16 (cbuffer, buffer_size)

class

char_buffer_to_s24 (cbuffer, buffer_size)

class

char_buffer_to_s32 (cbuffer, buffer_size)

class

char_buffer_to_s64 (cbuffer, buffer_size)

class

char_buffer_to_s8 (cbuffer, buffer_size)

class

char_buffer_write_complex (cbuffer, value, byte_order)

class

char_buffer_write_double (cbuffer, value, byte_order)

class

char_buffer_write_float (cbuffer, value, byte_order)

class

char_buffer_write_s16 (cbuffer, value, byte_order)

class

char_buffer_write_s24 (cbuffer, value, byte_order)

class

char_buffer_write_s32 (cbuffer, value, byte_order)

class

char_buffer_write_s64 (cbuffer, value, byte_order)

class

char_buffer_write_s8 (cbuffer, value, byte_order)

class

complex_to_char_buffer (buffer, buffer_length)

class

double_to_char_buffer (buffer, buffer_length)

class

float_to_char_buffer (buffer, buffer_length)

class

s16_to_char_buffer (buffer, buffer_length)

class

s24_to_char_buffer (buffer, buffer_length)

class

s32_to_char_buffer (buffer, buffer_length)

class

s64_to_char_buffer (buffer, buffer_length)

class

s8_to_char_buffer (buffer, buffer_length)

Details

class Ags.BufferUtil
classmethod char_buffer_read_complex(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the Ags.Complex value

Return type:

Ags.Complex

Read a Ags.Complex quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_double(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the float value

Return type:

float

Read a float quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_float(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the float value

Return type:

float

Read a float quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_s16(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the gint16 value

Return type:

int

Read a gint16 quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_s24(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the gint32 value

Return type:

int

Read a gint32 24 bit quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_s32(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the gint32 value

Return type:

int

Read a gint32 32 bit quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_s64(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order

Returns:

the gint64 value

Return type:

int

Read a gint64 64 bit quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_read_s8(cbuffer, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • byte_order (int) – reverse order, ignored here

Returns:

the gint8 value

Return type:

int

Read a gint8 quantity of cbuffer.

New in version 3.0.0.

classmethod char_buffer_swap_bytes(cbuffer, word_size, buffer_size)
Parameters:
  • cbuffer (int) – the buffer to swap

  • word_size (int) – the word size

  • buffer_size (int) – the buffer size

Swap bytes in view of Little/Big-Endian.

New in version 3.0.0.

classmethod char_buffer_to_complex(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the Ags.Complex buffer

Return type:

Ags.Complex

Unpack cbuffer to a Ags.Complex buffer

New in version 3.0.0.

classmethod char_buffer_to_double(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the float buffer

Return type:

float

Unpack cbuffer to a float buffer

New in version 3.0.0.

classmethod char_buffer_to_float(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the float buffer

Return type:

float

Unpack cbuffer to a float buffer

New in version 3.0.0.

classmethod char_buffer_to_s16(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the gint16 buffer

Return type:

int

Unpack cbuffer to a gint16 buffer

New in version 3.0.0.

classmethod char_buffer_to_s24(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the gint32 buffer

Return type:

int

Unpack cbuffer to a gint32 buffer

New in version 3.0.0.

classmethod char_buffer_to_s32(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the gint32 buffer

Return type:

int

Unpack cbuffer to a gint32 buffer

New in version 3.0.0.

classmethod char_buffer_to_s64(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the gint64 buffer

Return type:

int

Unpack cbuffer to a gint64 buffer

New in version 3.0.0.

classmethod char_buffer_to_s8(cbuffer, buffer_size)
Parameters:
  • cbuffer (int) – the guchar buffer

  • buffer_size (int) – the buffer size

Returns:

the gint8 buffer

Return type:

int

Unpack cbuffer to a gint8 buffer

New in version 3.0.0.

classmethod char_buffer_write_complex(cbuffer, value, byte_order)
Parameters:

Write a Ags.Complex quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_double(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (float) – the float value

  • byte_order (int) – reverse order

Write a float quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_float(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (float) – the float value

  • byte_order (int) – reverse order

Write a float quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_s16(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (int) – the gint16 value

  • byte_order (int) – reverse order

Write a gint16 quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_s24(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (int) – the gint32 value

  • byte_order (int) – reverse order

Write a gint32 quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_s32(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (int) – the gint32 value

  • byte_order (int) – reverse order

Write a gint32 quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_s64(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (int) – the gint64 value

  • byte_order (int) – reverse order

Write a gint64 quantity to cbuffer.

New in version 3.0.0.

classmethod char_buffer_write_s8(cbuffer, value, byte_order)
Parameters:
  • cbuffer (int) – the character buffer

  • value (int) – the gint8 value

  • byte_order (int) – reverse order

Write a gint8 quantity to cbuffer.

New in version 3.0.0.

classmethod complex_to_char_buffer(buffer, buffer_length)
Parameters:
Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod double_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (float) – the float buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod float_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (float) – the float buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod s16_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (int) – the gint16 buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod s24_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (int) – the gint32 buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod s32_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (int) – the gint32 buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod s64_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (int) – the gint64 buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.

classmethod s8_to_char_buffer(buffer, buffer_length)
Parameters:
  • buffer (int) – the gint8 buffer

  • buffer_length (int) – the buffer length

Returns:

the guchar buffer

Return type:

int

Pack buffer into an guchar buffer.

New in version 3.0.0.