daveGetSecondsAt

Get time in seconds from random position

version(BindNodave_Static)
extern (C) @nogc nothrow
float
daveGetSecondsAt

Parameters

dc daveConnection*

a daveConnection

pos int

Position in bytes

Examples

// read 4 timers: each timer has 2 bytes
const(int) res = daveReadBytes(dc, daveTimer, 0, 0, 4, null);
// read second of timer 2
float d = daveGetSecondsAt(dc, 4);
// 4 because:
// | pos | timer   |
// | 0   | timer 0 |
// | 1   | timer 0 |
// | 2   | timer 1 |
// | 3   | timer 1 |
// | 4   | timer 2 | <----
// | 5   | timer 2 |

Meta