{"success":true,"data":{"ext":"pdb","name":"Merriam-Webster Pocket Dictionary file","description":"The PDB format for Merriam-Webster Pocket Dictionary files is a Palm OS database format used for dictionary content published by Merriam-Webster. It is used by Palm-compatible devices and desktop tools that display, search, or sync dictionary entries and reference data. This is a legacy format associated with older Palm software; it is generally safe, though files from untrusted sources should still be handled cautiously.","mime":["application/vnd.palm"],"risk_level":"Safe","signatures":[{"hex":"00 00 00 00 00 00 00 00","offset":11,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00","offset":11,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 2D 57 20 50 6F 63 6B 65 74 20 44 69 63 74 69","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"4D 69 63 72 6F 73 6F 66 74 20 43 2F 43 2B 2B 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"73 6D 5F","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"73 7A 65 7A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"AC ED 00 05 73 72 00 12 62 67 62 6C 69 74 7A 2E","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["rvt","tbi","xxx"],"usage":{"python":"def is_pdb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PDB by magic bytes at offset 11.\"\"\"\n    signature = bytes([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        f.seek(11)\n        return f.read(8) == signature","node":"function isPDB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);\n  if (buffer.length < 19) return false;\n  return buffer.subarray(11, 19).equals(signature);\n}","go":"func IsPDB(data []byte) bool {\n    signature := []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\n    if len(data) < 19 {\n        return false\n    }\n    return bytes.Equal(data[11:19], signature)\n}"}}}