Lines Matching refs:binary
471 SECTION("non-empty object with binary member")
477 { "entry", json::binary(s, 0) }
483 0x05, // entry: binary
486 0x0A, 0x00, 0x00, 0x00, // size of binary (little endian)
487 0x00, // Generic binary subtype
501 SECTION("non-empty object with binary member with subtype")
507 { "entry", json::binary(md5hash, 5) }
513 0x05, // entry: binary
516 0x10, 0x00, 0x00, 0x00, // size of binary (little endian)
517 0x05, // MD5 binary subtype
685 bool binary(std::vector<std::uint8_t>& /*unused*/)
821 TEST_CASE("Negative size of binary value")
823 // invalid BSON: the size of the binary value is -1
827 0x05, // entry: binary
830 0xFF, 0xFF, 0xFF, 0xFF, // size of binary (little endian)
831 0x05, // MD5 binary subtype
837 CHECK_THROWS_WITH_AS(_ = json::from_bson(input), "[json.exception.parse_error.112] parse error at byte 15: syntax error while parsing BSON binary: byte array length cannot be negative, is -1", json::parse_error);
1250 std::ifstream f_bson(filename + ".bson", std::ios::binary);