Skip to content

Commit

Permalink
fix pelling error to "auto_delete"
Browse files Browse the repository at this point in the history
  • Loading branch information
taiji1985 authored Nov 30, 2024
1 parent 84343f2 commit ce0b8d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/basic/include/maix_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ namespace maix
* Construct a Bytes object from a uint8_t array.
* @param data uint8_t array
* @param len length of the array
* @param auto_detele if true, will delete data when destruct. When copy is true, this arg will be ignore.
* @param auto_delete if true, will delete data when destruct. When copy is true, this arg will be ignore.
* @param copy data will be copy to new buffer if true, if false, will use data directly,
* default true to ensure memory safety.
* @maixcdk maix.Bytes.Bytes
*/
Bytes(uint8_t *data, uint32_t len, bool auto_detele = false, bool copy = true)
Bytes(uint8_t *data, uint32_t len, bool auto_delete = false, bool copy = true)
{
this->data = data;
this->data_len = len;
this->buff_len = len;
this->_is_alloc = auto_detele;
this->_is_alloc = auto_delete;
if(len > 0)
{
if(data && copy)
Expand Down

0 comments on commit ce0b8d4

Please sign in to comment.