fix cp437 prefix, fix example
This commit is contained in:
parent
514c0304b8
commit
8296773779
3 changed files with 29 additions and 29 deletions
|
@ -1588,6 +1588,11 @@ void sp_cmd_hard_reset_free(struct HardResetCommand */*notnull*/ instance);
|
|||
*/
|
||||
struct HardResetCommand */*notnull*/ sp_cmd_hard_reset_new(void);
|
||||
|
||||
/**
|
||||
*Clones a [Cp437Grid] instance.
|
||||
*/
|
||||
Cp437Grid */*notnull*/ sp_cp437_grid_clone(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls [`servicepoint::Cp437Grid::data_ref_mut`].
|
||||
*
|
||||
|
@ -1595,7 +1600,7 @@ struct HardResetCommand */*notnull*/ sp_cmd_hard_reset_new(void);
|
|||
*
|
||||
* The returned memory is valid for the lifetime of the instance.
|
||||
*/
|
||||
struct ByteSlice sp_cp437_data_ref_mut(Cp437Grid */*notnull*/ instance);
|
||||
struct ByteSlice sp_cp437_grid_data_ref_mut(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls [`servicepoint::Cp437Grid::fill`].
|
||||
|
@ -1607,7 +1612,12 @@ struct ByteSlice sp_cp437_data_ref_mut(Cp437Grid */*notnull*/ instance);
|
|||
* - `cp437_grid`: instance to write to
|
||||
* - `value`: the value to set all cells to
|
||||
*/
|
||||
void sp_cp437_fill(Cp437Grid */*notnull*/ instance, uint8_t value);
|
||||
void sp_cp437_grid_fill(Cp437Grid */*notnull*/ instance, uint8_t value);
|
||||
|
||||
/**
|
||||
*Deallocates a [Cp437Grid] instance.
|
||||
*/
|
||||
void sp_cp437_grid_free(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls [`servicepoint::Cp437Grid::get`].
|
||||
|
@ -1622,17 +1632,14 @@ void sp_cp437_fill(Cp437Grid */*notnull*/ instance, uint8_t value);
|
|||
*
|
||||
* - when accessing `x` or `y` out of bounds
|
||||
*/
|
||||
uint8_t sp_cp437_get(Cp437Grid */*notnull*/ instance, size_t x, size_t y);
|
||||
uint8_t sp_cp437_grid_get(Cp437Grid */*notnull*/ instance, size_t x, size_t y);
|
||||
|
||||
/**
|
||||
*Clones a [Cp437Grid] instance.
|
||||
* Calls [`servicepoint::Cp437Grid::height`].
|
||||
*
|
||||
* Gets the height of the grid.
|
||||
*/
|
||||
Cp437Grid */*notnull*/ sp_cp437_grid_clone(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
*Deallocates a [Cp437Grid] instance.
|
||||
*/
|
||||
void sp_cp437_grid_free(Cp437Grid */*notnull*/ instance);
|
||||
size_t sp_cp437_grid_height(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Creates a [Cp437GridCommand] and immediately turns that into a [Packet].
|
||||
|
@ -1659,13 +1666,6 @@ Cp437Grid *sp_cp437_grid_load(size_t width,
|
|||
*/
|
||||
Cp437Grid */*notnull*/ sp_cp437_grid_new(size_t width, size_t height);
|
||||
|
||||
/**
|
||||
* Calls [`servicepoint::Cp437Grid::height`].
|
||||
*
|
||||
* Gets the height of the grid.
|
||||
*/
|
||||
size_t sp_cp437_height(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls [`servicepoint::Cp437Grid::set`].
|
||||
*
|
||||
|
@ -1682,17 +1682,17 @@ size_t sp_cp437_height(Cp437Grid */*notnull*/ instance);
|
|||
*
|
||||
* - when accessing `x` or `y` out of bounds
|
||||
*/
|
||||
void sp_cp437_set(Cp437Grid */*notnull*/ instance,
|
||||
size_t x,
|
||||
size_t y,
|
||||
uint8_t value);
|
||||
void sp_cp437_grid_set(Cp437Grid */*notnull*/ instance,
|
||||
size_t x,
|
||||
size_t y,
|
||||
uint8_t value);
|
||||
|
||||
/**
|
||||
* Calls [`servicepoint::Cp437Grid::width`].
|
||||
*
|
||||
* Gets the width of the grid.
|
||||
*/
|
||||
size_t sp_cp437_width(Cp437Grid */*notnull*/ instance);
|
||||
size_t sp_cp437_grid_width(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
*Clones a [Packet] instance.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue