Home
last modified time | relevance | path

Searched hist:"9 cde21ff" (Results 1 – 4 of 4) sorted by relevance

/openbmc/sdbusplus/example/
H A Dlist-users.cpp9cde21ff Mon Aug 29 10:33:27 CDT 2022 Patrick Williams <patrick@stwcx.xyz> message: add unpack method

Add an unpack method that allows reading from the message as
r-values. This simplifies the pattern:

```
foo f{};
bar b{};
msg.read(f,b);

// Can now be written as...

auto [f, b] = msg.unpack<foo, bar>();
```

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic2ae7f2c52d41702b8c7c3af6a2efb21558a7579
/openbmc/sdbusplus/
H A DREADME.md9cde21ff Mon Aug 29 10:33:27 CDT 2022 Patrick Williams <patrick@stwcx.xyz> message: add unpack method

Add an unpack method that allows reading from the message as
r-values. This simplifies the pattern:

```
foo f{};
bar b{};
msg.read(f,b);

// Can now be written as...

auto [f, b] = msg.unpack<foo, bar>();
```

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic2ae7f2c52d41702b8c7c3af6a2efb21558a7579
/openbmc/sdbusplus/include/sdbusplus/
H A Dmessage.hpp9cde21ff Mon Aug 29 10:33:27 CDT 2022 Patrick Williams <patrick@stwcx.xyz> message: add unpack method

Add an unpack method that allows reading from the message as
r-values. This simplifies the pattern:

```
foo f{};
bar b{};
msg.read(f,b);

// Can now be written as...

auto [f, b] = msg.unpack<foo, bar>();
```

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic2ae7f2c52d41702b8c7c3af6a2efb21558a7579
/openbmc/sdbusplus/test/message/
H A Dread.cpp9cde21ff Mon Aug 29 10:33:27 CDT 2022 Patrick Williams <patrick@stwcx.xyz> message: add unpack method

Add an unpack method that allows reading from the message as
r-values. This simplifies the pattern:

```
foo f{};
bar b{};
msg.read(f,b);

// Can now be written as...

auto [f, b] = msg.unpack<foo, bar>();
```

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic2ae7f2c52d41702b8c7c3af6a2efb21558a7579