- Rosbag2 sqlite plugin does'nt work based on sqlite transactions.
- To enable optimized querying or writes within sqlite transactions are the best options.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct { | |
| size_t count; | |
| size_t capacity; | |
| } Header; | |
| #define ARR_INIT_CAPACITY 256 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // gcc -g -O2 -Wall -std=c2x file.c -o file | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| static void cleanup_free(void * p) { | |
| free(*(void **)p); | |
| } | |
| void leak_check_test() { | |
| __attribute__((cleanup(cleanup_free))) char * c = malloc(100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <inttypes.h> | |
| uint32_t rev(uint32_t x) | |
| { | |
| x = (x & 0x55555555) << 1 | (x >> 1) & 0x55555555; | |
| x = (x & 0x33333333) << 2 | (x >> 2) & 0x33333333; | |
| x = (x & 0x0F0F0F0F) << 4 | (x >> 4) & 0x0F0F0F0F; | |
| x = (x << 24) | ((x & 0xFF00) << 8) | | |
| (x >> 8) & 0xFF00 | (x >> 24); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <dirent.h> | |
| #include <error.h> | |
| #include <stdio.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <sys/wait.h> | |
| #include <signal.h> | |
| #include <stdlib.h> | |
| #include <time.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #define CHAR_BIT 8 | |
| int min(int x, int y) | |
| { | |
| return y ^ ((x ^ y) & -(x < y)); // min(x, y) | |
| } | |
| int max(int x, int y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Header only implementation of linked list, & some operations | |
| #pragma once | |
| volatile size_t sz; | |
| typedef struct _node { | |
| int data; | |
| struct Node * next; | |
| } __attribute__((aligned)) Node; |
-
Visteon [Present]
** Currently working and leading a team on the development of Autonomous Framework from Bangalore. ** Ported DM-verity to one of the car embedded stacks, developed the file system manager to handle verity partitions. ** Enabled secure signing features on u-boot and ported the same onto ARM targets.
Some important URL's about CI-Generic are below.
NewerOlder