Add Buffer; go to core v0.1.5

This commit is contained in:
Michal Moskal
2016-04-03 16:52:57 -07:00
parent b003af6eae
commit 02c41b59bd
10 changed files with 194 additions and 7 deletions

View File

@ -179,6 +179,16 @@ namespace pins {
}
}
/**
* Create a new zero-initialized buffer.
* @param size number of bytes in the buffer
*/
//%
Buffer createBuffer(int size)
{
return ManagedBuffer(size).leakData();
}
// TODO:
void i2cReadBuffer(int address, RefBuffer *buf)
{