{"success":true,"data":{"ext":"tlb","name":"OLE","description":"OLE type library files are a Microsoft file format used to describe COM interfaces, classes, and constants for applications and automation tools. They are commonly used by Visual C++, ActiveX components, and other Windows development environments to enable programmatic access to software objects. The format is a legacy Windows component, and files should be treated cautiously only when obtained from untrusted sources, as they may accompany executable software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4D 53 46 54 02 00 01 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_tlb(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TLB by magic bytes.\"\"\"\n    signature = bytes([0x4D, 0x53, 0x46, 0x54, 0x02, 0x00, 0x01, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isTLB(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4D, 0x53, 0x46, 0x54, 0x02, 0x00, 0x01, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsTLB(data []byte) bool {\n    signature := []byte{0x4D, 0x53, 0x46, 0x54, 0x02, 0x00, 0x01, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}