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

Version Path
oj-3.16.9 ext/oj/circarray.h
oj-3.16.8 ext/oj/circarray.h
oj-3.16.7 ext/oj/circarray.h
oj-3.16.6 ext/oj/circarray.h
oj-3.16.5 ext/oj/circarray.h
oj-3.16.4 ext/oj/circarray.h
oj-3.16.3 ext/oj/circarray.h
oj-3.16.2 ext/oj/circarray.h
oj-3.16.1 ext/oj/circarray.h
oj-3.16.0 ext/oj/circarray.h
oj-3.15.1 ext/oj/circarray.h
oj-3.15.0 ext/oj/circarray.h
oj-3.14.3 ext/oj/circarray.h