Sha256: 13ddf1049b7dec83f9d848ed04a9868ef458eeda9d7a748d65c143e2074362bf
Contents?: true
Size: 678 Bytes
Versions: 13
Compression:
Stored size: 678 Bytes
Contents
// Copyright (c) 2012 Peter Ohler. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for // license details. #ifndef OJ_CIRCARRAY_H #define OJ_CIRCARRAY_H #include "ruby.h" typedef struct _circArray { VALUE obj_array[1024]; VALUE* objs; unsigned long size; // allocated size or initial array size unsigned long cnt; }* CircArray; extern CircArray oj_circ_array_new(void); extern void oj_circ_array_free(CircArray ca); extern void oj_circ_array_set(CircArray ca, VALUE obj, unsigned long id); extern VALUE oj_circ_array_get(CircArray ca, unsigned long id); #endif /* OJ_CIRCARRAY_H */
Version data entries
13 entries across 13 versions & 1 rubygems