MCPcopy Create free account
hub / github.com/davisking/dlib / deserialize

Function deserialize

dlib/pixel.h:1993–2009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1991// ----------------------------------------------------------------------------------------
1992
1993 inline void deserialize (
1994 rgb_alpha_pixel& item,
1995 std::istream& in
1996 )
1997 {
1998 try
1999 {
2000 deserialize(item.red,in);
2001 deserialize(item.green,in);
2002 deserialize(item.blue,in);
2003 deserialize(item.alpha,in);
2004 }
2005 catch (serialization_error& e)
2006 {
2007 throw serialization_error(e.info + "\n while deserializing object of type rgb_alpha_pixel");
2008 }
2009 }
2010
2011// ----------------------------------------------------------------------------------------
2012

Callers

nothing calls this directly

Calls 1

serialization_errorClass · 0.85

Tested by

no test coverage detected