Skip to content

Instantly share code, notes, and snippets.

@kersny
Created October 4, 2011 13:58
Show Gist options
  • Save kersny/1261713 to your computer and use it in GitHub Desktop.
Save kersny/1261713 to your computer and use it in GitHub Desktop.
Getting UV Sizes
#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