GW2DetermineFileTypeAndReport
GW2DetermineFileTypeAndReport फ़ंक्शन किसी दी गई फ़ाइल के लिए फ़ाइल प्रकार निर्धारित करता है और एक रिपोर्ट तैयार करता है। यह किसी session से संबंधित नहीं है।
- C++
- C#
- Java
- Python
- JavaScript
#include "glasswall.core2.api.h"
ft_t GW2DetermineFileTypeAndReport(const char *inputFileBuffer, size_t inputLength, const char *report)
पैरामीटर
inputFileBuffer वह memory location जिसमें इस फ़ंक्शन द्वारा प्रोसेस की जाने वाली फ़ाइल मौजूद है।
inputLength bytes में inputFileBuffer की लंबाई
report एक plain text फ़ाइल का path जहाँ रिपोर्ट लिखी जाएगी। यदि फ़ाइल मौजूद नहीं है, तो इसे बनाया जाएगा।
रिटर्न
Enumerated type ft_t जो निर्धारित फ़ाइल प्रकार को दर्शाता है। यदि फ़ाइल प्रकार निर्धारित नहीं किया जा सकता, तो ft_unknown लौटाया जाएगा।
सारांश
रिटर्न
सारांश
public int GW2DetermineFileTypeAndReport(byte[] fileBuffer, String reportFilePath) throws GlasswallException, NullPointerException
public int GW2DetermineFileTypeAndReport(byte[] fileBuffer, int length, String reportFilePath) throws GlasswallException, NullPointerException
विवरण
The GW2DetermineFileTypeAndReport function determines the file type of the file held in the byte array fileBuffer and writes out a summary XML report to the path specified in reportFilePath. The length of the fileBuffer may optionally be specified.
रिटर्न
GW2DetermineFileTypeAndReport फ़ंक्शन एक पूर्णांक लौटाता है जो निर्धारित फ़ाइल प्रकार को दर्शाता है। enumeration constants की सूची C source header file filetype.h में है। 0 का return value दर्शाता है कि फ़ाइल प्रकार निर्धारित नहीं किया जा सकता।
यदि सफल हो, तो reportFilePath में निर्दिष्ट पथ पर एक XML रिपोर्ट लिखी जाएगी।
A NullPointerException exception will be thrown if fileBuffer or reportFilePath buffers are null or empty.
A GlasswallException exception will be thrown if fileBuffer cannot be retrieved, or if the reportFilePath could not be converted to UTF-8.
सारांश
रिटर्न
सारांश
रिटर्न