HashVal

from panda3d.core import HashVal
class HashVal

Bases: DTOOL_SUPER_BASE

Stores a 128-bit value that represents the hashed contents (typically MD5) of a file or buffer.

Inheritance diagram

Inheritance diagram of HashVal

__init__(*args, **kwargs)
asBin()

C++ Interface: as_bin(HashVal self)

/**
  • Returns the HashVal as a 16-byte binary string.

*/

asDec()

C++ Interface: as_dec(HashVal self)

/**
  • Returns the HashVal as a string with four decimal numbers.

*/

asHex()

C++ Interface: as_hex(HashVal self)

/**
  • Returns the HashVal as a 32-byte hexadecimal string.

*/

as_bin()

C++ Interface: as_bin(HashVal self)

/**
  • Returns the HashVal as a 16-byte binary string.

*/

as_dec()

C++ Interface: as_dec(HashVal self)

/**
  • Returns the HashVal as a string with four decimal numbers.

*/

as_hex()

C++ Interface: as_hex(HashVal self)

/**
  • Returns the HashVal as a 32-byte hexadecimal string.

*/

assign()

C++ Interface: assign(const HashVal self, const HashVal copy)

compareTo()

C++ Interface: compare_to(HashVal self, const HashVal other)

/**

*/

compare_to()

C++ Interface: compare_to(HashVal self, const HashVal other)

/**

*/

hashBuffer()

C++ Interface: hash_buffer(const HashVal self, str buffer, int length)

/**
  • Generates the hash value by hashing the indicated data.

*/

hashBytes()

C++ Interface: hash_bytes(const HashVal self, bytes data)

/**
  • Generates the hash value by hashing the indicated data.

*/

hashFile()

C++ Interface: hash_file(const HashVal self, const Filename filename)

/**
  • Generates the hash value from the indicated file. Returns true on success,

  • false if the file cannot be read.

*/

hashRamfile()

C++ Interface: hash_ramfile(const HashVal self, const Ramfile ramfile)

/**
  • Generates the hash value by hashing the indicated data.

*/

hashStream()

C++ Interface: hash_stream(const HashVal self, istream stream)

/**
  • Generates the hash value from the indicated file. Returns true on success,

  • false if the file cannot be read.

*/

hashString()

C++ Interface: hash_string(const HashVal self, str data)

/**
  • Generates the hash value by hashing the indicated data.

*/

hash_buffer()

C++ Interface: hash_buffer(const HashVal self, str buffer, int length)

/**
  • Generates the hash value by hashing the indicated data.

*/

hash_bytes()

C++ Interface: hash_bytes(const HashVal self, bytes data)

/**
  • Generates the hash value by hashing the indicated data.

*/

hash_file()

C++ Interface: hash_file(const HashVal self, const Filename filename)

/**
  • Generates the hash value from the indicated file. Returns true on success,

  • false if the file cannot be read.

*/

hash_ramfile()

C++ Interface: hash_ramfile(const HashVal self, const Ramfile ramfile)

/**
  • Generates the hash value by hashing the indicated data.

*/

hash_stream()

C++ Interface: hash_stream(const HashVal self, istream stream)

/**
  • Generates the hash value from the indicated file. Returns true on success,

  • false if the file cannot be read.

*/

hash_string()

C++ Interface: hash_string(const HashVal self, str data)

/**
  • Generates the hash value by hashing the indicated data.

*/

inputBinary()

C++ Interface: input_binary(const HashVal self, istream in)

/**
  • Inputs the HashVal as a binary stream of bytes in order. This is not the

  • same order expected by read_stream().

*/

inputDec()

C++ Interface: input_dec(const HashVal self, istream in)

/**
  • Inputs the HashVal as four unsigned decimal integers.

*/

inputHex()

C++ Interface: input_hex(const HashVal self, istream in)

/**
  • Inputs the HashVal as a 32-digit hexadecimal number.

*/

input_binary()

C++ Interface: input_binary(const HashVal self, istream in)

/**
  • Inputs the HashVal as a binary stream of bytes in order. This is not the

  • same order expected by read_stream().

*/

input_dec()

C++ Interface: input_dec(const HashVal self, istream in)

/**
  • Inputs the HashVal as four unsigned decimal integers.

*/

input_hex()

C++ Interface: input_hex(const HashVal self, istream in)

/**
  • Inputs the HashVal as a 32-digit hexadecimal number.

*/

mergeWith()

C++ Interface: merge_with(const HashVal self, const HashVal other)

/**
  • Generates a new HashVal representing the xor of this one and the other one.

*/

merge_with()

C++ Interface: merge_with(const HashVal self, const HashVal other)

/**
  • Generates a new HashVal representing the xor of this one and the other one.

*/

output()

C++ Interface: output(HashVal self, ostream out)

/**

*/

outputBinary()

C++ Interface: output_binary(HashVal self, ostream out)

/**
  • Outputs the HashVal as a binary stream of bytes in order. This is not the

  • same order generated by write_stream().

*/

outputDec()

C++ Interface: output_dec(HashVal self, ostream out)

/**
  • Outputs the HashVal as four unsigned decimal integers.

*/

outputHex()

C++ Interface: output_hex(HashVal self, ostream out)

/**
  • Outputs the HashVal as a 32-digit hexadecimal number.

*/

output_binary()

C++ Interface: output_binary(HashVal self, ostream out)

/**
  • Outputs the HashVal as a binary stream of bytes in order. This is not the

  • same order generated by write_stream().

*/

output_dec()

C++ Interface: output_dec(HashVal self, ostream out)

/**
  • Outputs the HashVal as four unsigned decimal integers.

*/

output_hex()

C++ Interface: output_hex(HashVal self, ostream out)

/**
  • Outputs the HashVal as a 32-digit hexadecimal number.

*/

readDatagram()

C++ Interface: read_datagram(const HashVal self, DatagramIterator source)

/**

*/

readStream()

C++ Interface: read_stream(const HashVal self, StreamReader source)

/**

*/

read_datagram()

C++ Interface: read_datagram(const HashVal self, DatagramIterator source)

/**

*/

read_stream()

C++ Interface: read_stream(const HashVal self, StreamReader source)

/**

*/

setFromBin()

C++ Interface: set_from_bin(const HashVal self, bytes text)

/**
  • Sets the HashVal from a 16-byte binary string. Returns true if successful,

  • false otherwise.

*/

setFromDec()

C++ Interface: set_from_dec(const HashVal self, str text)

/**
  • Sets the HashVal from a string with four decimal numbers. Returns true if

  • valid, false otherwise.

*/

setFromHex()

C++ Interface: set_from_hex(const HashVal self, str text)

/**
  • Sets the HashVal from a 32-byte hexademical string. Returns true if

  • successful, false otherwise.

*/

set_from_bin()

C++ Interface: set_from_bin(const HashVal self, bytes text)

/**
  • Sets the HashVal from a 16-byte binary string. Returns true if successful,

  • false otherwise.

*/

set_from_dec()

C++ Interface: set_from_dec(const HashVal self, str text)

/**
  • Sets the HashVal from a string with four decimal numbers. Returns true if

  • valid, false otherwise.

*/

set_from_hex()

C++ Interface: set_from_hex(const HashVal self, str text)

/**
  • Sets the HashVal from a 32-byte hexademical string. Returns true if

  • successful, false otherwise.

*/

writeDatagram()

C++ Interface: write_datagram(HashVal self, Datagram destination)

/**

*/

writeStream()

C++ Interface: write_stream(HashVal self, StreamWriter destination)

/**

*/

write_datagram()

C++ Interface: write_datagram(HashVal self, Datagram destination)

/**

*/

write_stream()

C++ Interface: write_stream(HashVal self, StreamWriter destination)

/**

*/