Created
October 4, 2011 13:58
-
-
Save kersny/1261713 to your computer and use it in GitHub Desktop.
Getting UV Sizes
This file contains 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 "libuv/deps/libuv/include/uv.h" | |
#include <stdio.h> | |
int main() | |
{ | |
printf("Prepare Watcher: %lu\n", sizeof(uv_prepare_t)); | |
printf("Idle Watcher: %lu\n", sizeof(uv_idle_t)); | |
printf("Check Watcher: %lu\n", sizeof(uv_check_t)); | |
printf("Timer Watcher: %lu\n", sizeof(uv_timer_t)); | |
printf("TCP Type: %lu\n", sizeof(uv_tcp_t)); | |
printf("Pipe Type: %lu\n", sizeof(uv_pipe_t)); | |
printf("Shutdown Type: %lu\n", sizeof(uv_shutdown_t)); | |
printf("Connect Type: %lu\n", sizeof(uv_connect_t)); | |
printf("Write Type: %lu\n", sizeof(uv_write_t)); | |
printf("Process Type: %lu\n", sizeof(uv_process_t)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment