Function

FwupdPlugininput_stream_compute_sum16

Declaration [src]

gboolean
fu_input_stream_compute_sum16 (
  GInputStream* stream,
  guint16* value,
  GError** error
)

Description [src]

Returns the arithmetic sum of all bytes in the stream.

Available since:2.0.0

Parameters

stream GInputStream
 

A GInputStream.

 The data is owned by the caller of the function.
value guint16*
 

Value.

 The argument will be set by the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.