deserialize


Description:

[ Version ( since = "1.50" ) ]
public static Layout? deserialize (Context context, Bytes bytes, LayoutDeserializeFlags flags) throws Error

Loads data previously created via [method@Pango.

Layout.serialize].

For a discussion of the supported format, see that function.

Note: to verify that the returned layout is identical to the one that was serialized, you can compare bytes to the result of serializing the layout again.

Parameters:

context

a `PangoContext`

bytes

the bytes containing the data

flags

`PangoLayoutDeserializeFlags`

Returns:

a new `PangoLayout`