本文整理汇总了C++中Hash::append方法的典型用法代码示例。如果您正苦于以下问题:C++ Hash::append方法的具体用法?C++ Hash::append怎么用?C++ Hash::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hash
的用法示例。
在下文中一共展示了Hash::append方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cs
/* returns false if checksum matched and true if failed */
void
RecordSetInBase::checksum() const
{
int const cs(check_size(check_type_));
if (cs > 0) /* checksum records */
{
Hash check;
check.append (head_ + begin_, size_ - begin_); /* records */
check.append (head_, begin_ - cs); /* header */
assert(cs <= MAX_CHECKSUM_SIZE);
byte_t result[MAX_CHECKSUM_SIZE];
check.gather<sizeof(result)>(result);
const byte_t* const stored_checksum(head_ + begin_ - cs);
if (gu_unlikely(memcmp (result, stored_checksum, cs)))
{
gu_throw_error(EINVAL)
<< "RecordSet checksum does not match:"
<< "\ncomputed: " << gu::Hexdump(result, cs)
<< "\nfound: " << gu::Hexdump(stored_checksum, cs);
}
}
}
示例2: append
void append(Hash& hash) {
hash.append(VERSION);
// Knobs that change the SyLens algo
hash.append(distorter.compute_hash());
hash.append(uv_attrib_name);
ModifyGeo::append(hash); // the super called he wants his pointers back
}
示例3: append_transform_to
void append_transform_to(Hash& hash)
{
xform.append(hash);
knob("xform")->append(hash, NULL);
hash.append(flip_);
hash.append(flop_);
hash.append(wrap_);
}
示例4: append
/* virtual */
void ABCReadGeo::append(Hash& hash)
{
p_tableKnobI = knob("Obj_list")->tableKnob();
Op::append(hash);
hash.append(outputContext().frame());
hash.append(m_filename);
hash.append(interpolate);
if (p_tableKnobI) {
for (unsigned i = 0; i < active_objs.size(); i++) {
hash.append(active_objs[i]);
hash.append(bbox_objs[i]);
}
}
}
示例5: append
/* virtual */
void append(Hash& hash)
{
hash.append(VERSION);
hash.append(distorter.compute_hash());
Material::append(hash);
}
示例6: append
// The hash value must change or Nuke will think the picture is the
// same. If you can't determine some id for the picture, you should
// use the current time or something.
void append(Hash& hash)
{
hash.append(position);
}
示例7: append
void append(Hash& hash)
{
hash.append(thisFrame);
}
示例8: append
void append(Hash& hash)
{
hash.append(_use_scanline_engine);
hash.append(_reverse_scanlines);
}
示例9: append
void append(Hash& hash)
{
hash.append(hash_counter);
}
示例10: append
void append(Hash& h) {
h.append(__DATE__);
h.append(__TIME__);
}
示例11: append
// Hashing for caches. We append our version to the cache hash, so that when you update
// the plugin all the caches will be flushed automatically
void append(Hash& hash) {
hash.append(VERSION);
hash.append(distorter.compute_hash());
Iop::append(hash); // the super called he wants his pointers back
}
示例12: append
void append(Hash& hash) {
hash.append(VERSION);
hash.append(uv_attrib_name);
append_transform_to(hash);
ModifyGeo::append(hash); // the super called he wants his pointers back
}
示例13: append
void append(Hash& hash)
{
hash.append(outputContext().frame());
}
示例14: append
// Hashing for caches. We append our version to the cache hash, so that when you update
// the plugin all the caches will(should?) be flushed automatically
void JT_TileRoll::append(Hash& hash) {
hash.append(__DATE__);
hash.append(__TIME__);
Iop::append(hash); // the super called he wants his pointers back
}
示例15: append
void append(Hash& hash) {
hash.append(rand());
}