MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Buffer

Method Buffer

RedisStudio/SSDB/bytes.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7#include "bytes.h"
8
9Buffer::Buffer(int total){
10 size_ = 0;
11 total_ = origin_total = total;
12 buf = (char *)malloc(total);
13 data_ = buf;
14}
15
16Buffer::~Buffer(){
17 free(buf);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected