You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • @allObjects there is a slight problem with that:

    • As per the spec, buffer.slice creates a brand new sparse array - it uses lots of memory and time to create
    • Using new Uint8Array(buffer,p,C.OLED_CHUNK) only creates a 'view' of the data - nothing is copied until the set command.

    Basically the .set(new Uint8Array(buffer,x,y), z); pattern is about as close to a memcpy in JavaScript as you can get

About

Avatar for Gordon @Gordon started