Function

FwupdPlugincommon_write_uint16

Declaration [src]

void
fu_common_write_uint16 (
  guint8* buf,
  guint16 val_native,
  FuEndianType endian
)

Description [src]

Writes a value to a buffer using a specified endian.

Available since:1.0.3

Parameters

buf guint8*
 

A writable buffer.

 The data is owned by the caller of the function.
val_native guint16
 

A value in host byte-order.

endian FuEndianType
 

An endian type, e.g. G_LITTLE_ENDIAN.