{"success":true,"data":{"ext":"toast","name":"TOAST","description":"TOAST is a disc image file format created for Roxio Toast, a macOS optical disc authoring application originally developed by Adaptec and later maintained by Roxio and Corel. It is used to store CD, DVD, and related disc contents for burning, duplication, and archival workflows in Toast and compatible imaging tools. The format is generally safe, though as with any disk image, files from untrusted sources should be handled cautiously.","mime":["application/x-roxio-toast"],"risk_level":"Safe","signatures":[{"hex":"45 52 02 00 00 00","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["adf","bin","dmg","iso","vhd","vmdk"],"usage":{"python":"def is_toast(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TOAST by magic bytes.\"\"\"\n    signature = bytes([0x45, 0x52, 0x02, 0x00, 0x00, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isTOAST(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x45, 0x52, 0x02, 0x00, 0x00, 0x00]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsTOAST(data []byte) bool {\n    signature := []byte{0x45, 0x52, 0x02, 0x00, 0x00, 0x00}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"},"category":"Disk Images"}}