https://github.com/splatlab/squeakr
Revision a4d4b0ebc64eec5f6862ddbff48ff1de891098ee authored by Prashant Pandey on 06 November 2018, 17:45:37 UTC, committed by Prashant Pandey on 06 November 2018, 17:45:37 UTC
2 parent s 8e25799 + 9acdaf5
Raw File
Tip revision: a4d4b0ebc64eec5f6862ddbff48ff1de891098ee authored by Prashant Pandey on 06 November 2018, 17:45:37 UTC
merge
Tip revision: a4d4b0e
chunk.h
/*
 * ============================================================================
 *
 *        Authors:  Prashant Pandey <ppandey@cs.stonybrook.edu>
 *                  Rob Johnson <robj@vmware.com>   
 *                  Rob Patro (rob.patro@cs.stonybrook.edu)
 *
 * ============================================================================
 */

#ifndef _CHUNK_H_
#define _CHUNK_H_

#include <stdio.h>

class chunk {
	public:
		chunk();
		chunk(char *reads, uint32_t size);
		inline char *get_reads();
		inline uint32_t get_size();

	private:
		char *_reads;
		uint32_t _size;
};

chunk::chunk()
{
	_reads = NULL;
	_size = 0;
}

chunk::chunk(char *reads, uint32_t size)
{
	_reads = reads;
	_size = size;
}

inline char *chunk::get_reads()
{
	return _reads;
}

inline uint32_t chunk::get_size()
{
	return _size;
}

#endif
back to top