aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/vasp/source/buflib.h
blob: 545e8103bbc4d8d7a383d20283909680d6de1e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* 

VASP modular - vector assembling signal processor / objects for Max/MSP and PD

Copyright (c) 2002 Thomas Grill (xovo@gmx.net)
For information on usage and redistribution, and for a DISCLAIMER OF ALL
WARRANTIES, see the file, "license.txt," in this distribution.  

*/

/*! \file buflib.h
	\brief Routines for buffer management
*/

#ifndef __VASP_BUFLIB_H
#define __VASP_BUFLIB_H

#include "classes.h"
#include "vbuffer.h"

class BufEntry;

namespace BufLib
{
	VBuffer *Get(const VSymbol &s,I chn = 0,I len = -1,I offs = 0);

	BufEntry *NewImm(I fr,BL zero = true);

	V IncRef(const t_symbol *s);
	V DecRef(const t_symbol *s);

	BufEntry *Resize(BufEntry *e,I fr,BL keep = false,BL zero = true); 
}



#endif