Function gltf::is_binary
[−]
[src]
pub fn is_binary(slice: &[u8]) -> bool
Returns true
if the slice begins with the b"glTF"
magic string, indicating
a binary glTF
asset.
Examples
assert_eq!(true, gltf::is_binary(b"glTF...")); assert_eq!(false, gltf::is_binary(b"{...}"));