MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / SaveSnapshot

Method SaveSnapshot

source/Uthernet2.cpp:330–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328#define SS_YAML_KEY_SOCKET_REGISTER "Socket Register"
329
330void Socket::SaveSnapshot(YamlSaveHelper &yamlSaveHelper)
331{
332 yamlSaveHelper.SaveHexUint16(SS_YAML_KEY_SOCKET_RX_WRITE_REGISTER, sn_rx_wr);
333 yamlSaveHelper.SaveHexUint16(SS_YAML_KEY_SOCKET_RX_SIZE_REGISTER, sn_rx_rsr);
334 yamlSaveHelper.SaveHexUint8(SS_YAML_KEY_SOCKET_REGISTER, mySocketStatus);
335}
336
337bool Socket::LoadSnapshot(YamlLoadHelper &yamlLoadHelper)
338{

Callers

nothing calls this directly

Calls 5

SaveHexUint16Method · 0.80
SaveHexUint8Method · 0.80
SaveStringMethod · 0.80
SaveBoolMethod · 0.80
SaveMemoryMethod · 0.80

Tested by

no test coverage detected