updated shims
This commit is contained in:
@ -50,13 +50,21 @@
|
||||
"Array.unshift": "Add one element to the beginning of an array and return the new length of the array.",
|
||||
"Array@type": "Add, remove, and replace items in lists.",
|
||||
"Boolean.toString": "Returns a string representation of an object.",
|
||||
"Buffer.concat": "Return concatenation of current buffer and the given buffer",
|
||||
"Buffer.concat": "Return concatenation of current buffer and the given buffer\n\nConcatenates all buffers in the list",
|
||||
"Buffer.create": "Allocate a new buffer.",
|
||||
"Buffer.create|param|size": "number of bytes in the buffer",
|
||||
"Buffer.fill": "Fill (a fragment) of the buffer with given value.",
|
||||
"Buffer.fromArray": "Create a new buffer initalized to bytes from given array.",
|
||||
"Buffer.fromArray|param|bytes": "data to initalize with",
|
||||
"Buffer.fromHex": "Create a new buffer, decoding a hex string",
|
||||
"Buffer.fromUTF8": "Create a new buffer with UTF8-encoded string",
|
||||
"Buffer.fromUTF8|param|str": "the string to put in the buffer",
|
||||
"Buffer.getNumber": "Read a number in specified format from the buffer.",
|
||||
"Buffer.getUint8": "Reads an unsigned byte at a particular location",
|
||||
"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.packAt": "Writes numbers to the buffer according to the format",
|
||||
"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|offset": "number of bytes to shift; use negative value to shift right",
|
||||
@ -67,9 +75,11 @@
|
||||
"Buffer.shift|param|length": "number of elements in buffer. If negative, length is set as the buffer length minus",
|
||||
"Buffer.shift|param|offset": "number of bytes to shift; use negative value to shift right",
|
||||
"Buffer.shift|param|start": "start offset in buffer. Default is 0.",
|
||||
"Buffer.sizeOfNumberFormat": "Get the size in bytes of specified number format.",
|
||||
"Buffer.slice": "Return a copy of a fragment of a buffer.",
|
||||
"Buffer.toHex": "Convert a buffer to its hexadecimal representation.",
|
||||
"Buffer.toString": "Convert a buffer to string assuming UTF8 encoding",
|
||||
"Buffer.unpack": "Reads numbers from the buffer according to the format",
|
||||
"Buffer.write": "Write contents of `src` at `dstOffset` in current buffer.",
|
||||
"Colors": "Well known colors",
|
||||
"EventCreationMode": "How to create the event.",
|
||||
@ -510,8 +520,6 @@
|
||||
"pins.analogWritePin|param|name": "of pin to write to, eg: AnalogPin.P1",
|
||||
"pins.analogWritePin|param|value": "value to write to the pin between ``0`` and ``1023``. eg:1023,0",
|
||||
"pins.createBuffer": "Create a new zero-initialized buffer.",
|
||||
"pins.createBufferFromArray": "Create a new buffer initalized to bytes from given array.",
|
||||
"pins.createBufferFromArray|param|bytes": "data to initalize with",
|
||||
"pins.createBuffer|param|size": "number of bytes in the buffer",
|
||||
"pins.digitalReadPin": "Read the specified pin or connector as either 0 or 1",
|
||||
"pins.digitalReadPin|param|name": "pin to read from, eg: DigitalPin.P0",
|
||||
@ -548,7 +556,6 @@
|
||||
"pins.setPull": "Configure the pull direction of of a pin.",
|
||||
"pins.setPull|param|name": "pin to set the pull mode on, eg: DigitalPin.P0",
|
||||
"pins.setPull|param|pull": "one of the mbed pull configurations, eg: PinPullMode.PullUp",
|
||||
"pins.sizeOf": "Get the size in bytes of specified number format.",
|
||||
"pins.spiFormat": "Set the SPI bits and mode",
|
||||
"pins.spiFormat|param|bits": "the number of bits, eg: 8",
|
||||
"pins.spiFormat|param|mode": "the mode, eg: 3",
|
||||
|
@ -43,6 +43,7 @@
|
||||
"BeatFraction.Quarter|block": "1/4",
|
||||
"BeatFraction.Sixteenth|block": "1/16",
|
||||
"BeatFraction.Whole|block": "1",
|
||||
"Buffer|block": "Buffer",
|
||||
"Button.AB|block": "A+B",
|
||||
"Colors.Blue|block": "blue",
|
||||
"Colors.Green|block": "green",
|
||||
|
4
libs/core/shims.d.ts
vendored
4
libs/core/shims.d.ts
vendored
@ -1042,14 +1042,14 @@ declare namespace control {
|
||||
* Create a new zero-initialized buffer.
|
||||
* @param size number of bytes in the buffer
|
||||
*/
|
||||
//% shim=control::createBuffer
|
||||
//% deprecated=1 shim=control::createBuffer
|
||||
function createBuffer(size: int32): Buffer;
|
||||
|
||||
/**
|
||||
* Create a new buffer with UTF8-encoded string
|
||||
* @param str the string to put in the buffer
|
||||
*/
|
||||
//% shim=control::createBufferFromUTF8
|
||||
//% deprecated=1 shim=control::createBufferFromUTF8
|
||||
function createBufferFromUTF8(str: string): Buffer;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user