ByteArrayFormatQ

Listing of Formats »

ByteArrayFormatQ[ba,"fmt"]

如果 ByteArray 对象 ba 可能以 "fmt" 的格式导入,返回 True,否则返回 False.

ByteArrayFormatQ[ba,{"fmt1","fmt2",}]

如果 ba 可能以 "fmti" 的格式之一导入,则返回 True.

更多信息

范例

基本范例  (1)

将图像导出为 GIF 字符串:

检查字节数组是否可能是 GIF:

检查字节数组是否可能是 JPEG:

检查字节数组是否可能是以下图像格式之一:

Wolfram Research (2020),ByteArrayFormatQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.

文本

Wolfram Research (2020),ByteArrayFormatQ,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.

CMS

Wolfram 语言. 2020. "ByteArrayFormatQ." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html.

APA

Wolfram 语言. (2020). ByteArrayFormatQ. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html 年

BibTeX

@misc{reference.wolfram_2024_bytearrayformatq, author="Wolfram Research", title="{ByteArrayFormatQ}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_bytearrayformatq, organization={Wolfram Research}, title={ByteArrayFormatQ}, year={2020}, url={https://reference.wolfram.com/language/ref/ByteArrayFormatQ.html}, note=[Accessed: 21-November-2024 ]}