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

Function serialize

dlib/pixel.h:1973–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1971// ----------------------------------------------------------------------------------------
1972
1973 inline void serialize (
1974 const rgb_alpha_pixel& item,
1975 std::ostream& out
1976 )
1977 {
1978 try
1979 {
1980 serialize(item.red,out);
1981 serialize(item.green,out);
1982 serialize(item.blue,out);
1983 serialize(item.alpha,out);
1984 }
1985 catch (serialization_error& e)
1986 {
1987 throw serialization_error(e.info + "\n while serializing object of type rgb_alpha_pixel");
1988 }
1989 }
1990
1991// ----------------------------------------------------------------------------------------
1992

Callers

nothing calls this directly

Calls 1

serialization_errorClass · 0.85

Tested by

no test coverage detected