{"success":true,"data":{"ext":"bsb","name":"Pitney Bowes' MapInfo Sea Chart format","description":"The BSB file format is a raster nautical chart format associated with Pitney Bowes MapInfo and NOAA's Raster Navigation Chart distribution. It is used in marine navigation software and electronic chart plotters to display coastline, depth, and harbor information. The format is longstanding and may be treated as legacy in some workflows, but it is generally considered safe when opened with compatible charting applications.","mime":[],"risk_level":"Safe","signatures":[{"hex":"1F 9D","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"1F A0","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"21 0D 0A 43 52 52 2F 54 68 69 73 20 65 6C 65 63 74 72 6F 6E 69 63 20 63 68 61 72 74 20 77 61 73 20 70 72 6F 64 75 63 65 64 20 75 6E 64 65 72 20 74 68 65 20 61 75 74 68 6F 72 69 74 79 20 6F 66 20 55 53 41 2D 4E 4F 41 41 2F 4E 4F 53 2E 0D 0A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["z"],"usage":{"python":"def is_bsb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid BSB by magic bytes.\"\"\"\n    signature = bytes([0x1F, 0x9D])\n    with open(file_path, \"rb\") as f:\n        return f.read(2) == signature","node":"function isBSB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x1F, 0x9D]);\n  return buffer.subarray(0, 2).equals(signature);\n}","go":"func IsBSB(data []byte) bool {\n    signature := []byte{0x1F, 0x9D}\n    if len(data) < 2 {\n        return false\n    }\n    return bytes.Equal(data[:2], signature)\n}"}}}