File: encoder.hpp

package info (click to toggle)
polybar 3.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,108 kB
  • sloc: cpp: 30,424; python: 3,750; sh: 284; makefile: 83
file content (16 lines) | stat: -rw-r--r-- 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "common.hpp"
#include "errors.hpp"
#include "ipc/msg.hpp"

#include <cstdint>

POLYBAR_NS

namespace ipc {
  vector<uint8_t> encode(const type_t type, const vector<uint8_t>& data = {});
  vector<uint8_t> encode(const type_t type, const string& data);
}  // namespace ipc

POLYBAR_NS_END