updated to latest pxt

This commit is contained in:
Peli 2020-01-06 14:19:55 -08:00
parent c306db5478
commit 08ce23df9f
3 changed files with 9 additions and 2 deletions

View File

@ -55,6 +55,7 @@
"Buffer.getNumber": "Read a number in specified format from the buffer.", "Buffer.getNumber": "Read a number in specified format from the buffer.",
"Buffer.getUint8": "Reads an unsigned byte at a particular location", "Buffer.getUint8": "Reads an unsigned byte at a particular location",
"Buffer.indexOf": "Return position of other buffer in current buffer", "Buffer.indexOf": "Return position of other buffer in current buffer",
"Buffer.isReadOnly": "Returns false when the buffer can be written to.",
"Buffer.length": "Returns the length of a Buffer object.", "Buffer.length": "Returns the length of a Buffer object.",
"Buffer.rotate": "Rotate buffer left in place.\n\n\n\nstart. eg: -1", "Buffer.rotate": "Rotate buffer left in place.\n\n\n\nstart. eg: -1",
"Buffer.rotate|param|length": "number of elements in buffer. If negative, length is set as the buffer length minus", "Buffer.rotate|param|length": "number of elements in buffer. If negative, length is set as the buffer length minus",

View File

@ -950,6 +950,12 @@ declare interface Buffer {
//% shim=BufferMethods::getUint8 //% shim=BufferMethods::getUint8
getUint8(off: int32): int32; getUint8(off: int32): int32;
/**
* Returns false when the buffer can be written to.
*/
//% shim=BufferMethods::isReadOnly
isReadOnly(): boolean;
/** /**
* Writes an unsigned byte at a particular location * Writes an unsigned byte at a particular location
*/ */

View File

@ -46,7 +46,7 @@
"typescript": "2.6.1" "typescript": "2.6.1"
}, },
"dependencies": { "dependencies": {
"pxt-common-packages": "6.17.1", "pxt-common-packages": "6.18.2",
"pxt-core": "5.31.2" "pxt-core": "5.31.8"
} }
} }