55 for (
int i = 0; i <
n; ++i) {
59 sbuf[i] = (
unsigned char)(
v & 0xFF);
68 if (
ce->proto == SCARD_PROTOCOL_T0)
70 else if (
ce->proto == SCARD_PROTOCOL_T1)
82 if (
rv == SCARD_S_SUCCESS &&
rlen >= 2) {
97 for (
int i = 0; i <
datalen; ++i)
100 for (
int i = 0; i <
datalen; ++i)
int map_set(Value *vm, const char *key, Value v)
Insert or replace a key in the map.
Value make_map_empty(void)
Construct a new empty map Value.
static pcsc_card_entry * pcsc_get_card(int id)
Lookup a card slot by id.
Tagged union representing a Fun value.
int array_length(const Value *v)
Get the element count of an array Value.
int array_get_copy(const Value *v, int index, Value *out)
Copy an array element into out.
Value make_int(int64_t v)
Construct a Value representing a 64-bit integer.
Value make_array_from_values(const Value *vals, int count)
Create an array Value by copying items from an input span.
static Value pop_value(VM *vm)
Pop a Value from the VM operand stack.