Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cpp/apidoc/tutorials/plasma.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ was written by the `Create` command.
int64_t data_size = 100;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should perhaps turn this into an example we compile and include it in the Sphinx documentation

// The address of the buffer allocated by the Plasma store will be written at
// this address.
uint8_t* data;
std::shared_ptr<Buffer> data;
// Create a Plasma object by specifying its ID and size.
ARROW_CHECK_OK(client.Create(object_id, data_size, NULL, 0, &data));
```
Expand All @@ -194,7 +194,7 @@ metadata (as raw bytes) and the fourth argument is the size of the metadata.
// Create a Plasma object with metadata.
int64_t data_size = 100;
std::string metadata = "{'author': 'john'}";
uint8_t* data;
std::shared_ptr<Buffer> data;
client.Create(object_id, data_size, (uint8_t*) metadata.data(), metadata.size(), &data);
```

Expand Down