Class that represents a single change to a column value in partial update of a JSON column.
More...
#include <table.h>
Class that represents a single change to a column value in partial update of a JSON column.
◆ Binary_diff()
Binary_diff::Binary_diff |
( |
size_t |
offset, |
|
|
size_t |
length |
|
) |
| |
|
inline |
Create a new Binary_diff object.
- Parameters
-
offset | the offset of the beginning of the change |
length | the length of the section that is to be replaced |
◆ length()
size_t Binary_diff::length |
( |
| ) |
const |
|
inline |
- Returns
- the length of the changed data
◆ new_data()
const char * Binary_diff::new_data |
( |
const Field * |
field | ) |
const |
Get a pointer to the start of the replacement data.
- Parameters
-
field | the column that is updated |
- Returns
- a pointer to the start of the replacement data
◆ offset()
size_t Binary_diff::offset |
( |
| ) |
const |
|
inline |
- Returns
- the offset of the changed data
◆ old_data()
const char * Binary_diff::old_data |
( |
const Field * |
field | ) |
const |
Get a pointer to the start of the old data to be replaced.
- Parameters
-
field | the column that is updated |
- Returns
- a pointer to the start of old data to be replaced.
◆ m_length
size_t Binary_diff::m_length |
|
private |
The size of the portion that is to be replaced.
◆ m_offset
size_t Binary_diff::m_offset |
|
private |
The offset of the start of the change.
The documentation for this class was generated from the following files: