Python Forum
Hashing an address for binary file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hashing an address for binary file
#3
(Nov-03-2021, 04:58 PM)Gribouillis Wrote: I don't understand the call to seek() in the file with an offset equal to the hash() of some data called VehicleID. What is the purpose of this call? It will obviously lead to invalid operations on the file.

It takes the VehicleID value and puts it through the hash function to create an address.
The seek part creates the address in the file and dumps the record into it.
Reply


Messages In This Thread
Hashing an address for binary file - by Python_help - Nov-03-2021, 04:38 PM
RE: Hashing an address for binary file - by Python_help - Nov-03-2021, 05:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in entering address of a file in input akbarza 0 701 Oct-18-2023, 08:16 AM
Last Post: akbarza
  How do I read and write a binary file in Python? blackears 6 7,440 Jun-06-2023, 06:37 PM
Last Post: rajeshgk
  Read/Write binary file deanhystad 3 3,273 Feb-01-2021, 10:29 AM
Last Post: Larz60+
  Binary File Error SalsaBeanDip 1 1,801 Oct-12-2020, 09:13 PM
Last Post: bowlofred
  Convert file of hex strings to binary file medatib531 4 13,920 Oct-09-2020, 05:42 PM
Last Post: DeaD_EyE
  Binary File Read Aussie 6 8,607 Sep-03-2020, 03:57 AM
Last Post: deanhystad
  Binary file Aussie 12 4,640 Aug-31-2020, 09:20 PM
Last Post: Aussie
  python read binary file Pyguys 4 3,988 Jul-13-2020, 02:34 AM
Last Post: Pyguys
  Failure in writing binary text to file Gigux 7 3,901 Jul-04-2020, 08:41 AM
Last Post: Gigux
  search binary file and list all founded keyword offset Pyguys 4 2,850 Mar-17-2020, 06:46 AM
Last Post: Pyguys

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020