Lines Matching refs:bytes
18 * The fuzzer will take in the bytes and divide into two parts.
19 * original bytes : [... code bytes ... | 256 bytes]
20 * The first part is codeBytes, the original bytes minus 256 bytes, which will be treated
22 * For the second part, it will first reserve 256 bytes and then allocate bytes with same size
32 static bool FuzzSkRuntimeEffect_Once(sk_sp<SkData> bytes, const SkRuntimeEffect::Options& options) {
33 if (bytes->size() < kReservedBytes) {
36 sk_sp<SkData> codeBytes = SkData::MakeSubset(bytes.get(), 0, bytes->size() - kReservedBytes);
42 if (!effect || effect->uniformSize() > kReservedBytes) { // if there is not enough uniform bytes
46 SkData::MakeSubset(bytes.get(), bytes->size() - kReservedBytes, effect->uniformSize());
64 bool FuzzSkRuntimeEffect(sk_sp<SkData> bytes) {
68 bool result = FuzzSkRuntimeEffect_Once(bytes, options);
72 result = FuzzSkRuntimeEffect_Once(bytes, options) || result;
82 auto bytes = SkData::MakeWithoutCopy(data, size);
83 FuzzSkRuntimeEffect(bytes);