Home | History | Annotate | Download | only in test

Lines Matching defs:Bytes

30 // hexdump writes |msg| to |fp| followed by the hex encoding of |len| bytes
34 // Bytes is a wrapper over a byte slice which may be compared for equality. This
36 struct Bytes {
37 Bytes(const uint8_t *data_arg, size_t len_arg)
39 Bytes(const char *data_arg, size_t len_arg)
42 explicit Bytes(const char *str)
44 explicit Bytes(const std::string &str)
46 explicit Bytes(const std::vector<uint8_t> &vec)
50 explicit Bytes(const uint8_t (&array)[N]) : data(array), len(N) {}
56 inline bool operator==(const Bytes &a, const Bytes &b) {
60 inline bool operator!=(const Bytes &a, const Bytes &b) { return !(a == b); }
62 std::ostream &operator<<(std::ostream &os, const Bytes &in);