<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_get_details_size</id>
	<title>Truxton get details size - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://truxwiki.com/index.php?action=history&amp;feed=atom&amp;title=Truxton_get_details_size"/>
	<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_get_details_size&amp;action=history"/>
	<updated>2026-09-09T15:57:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://truxwiki.com/index.php?title=Truxton_get_details_size&amp;diff=6102&amp;oldid=prev</id>
		<title>Sam: Created page with &quot;Given file contents and a file type, this function will get details about the file.  =Syntax= &lt;source lang=&quot;C&quot;&gt; uint64_t truxton...&quot;</title>
		<link rel="alternate" type="text/html" href="https://truxwiki.com/index.php?title=Truxton_get_details_size&amp;diff=6102&amp;oldid=prev"/>
		<updated>2023-01-12T11:07:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Given file contents and a &lt;a href=&quot;/File_Types_Supported&quot; title=&quot;File Types Supported&quot;&gt;file type&lt;/a&gt;, this function will get &lt;a href=&quot;/Type_File_Details&quot; title=&quot;Type File Details&quot;&gt;details&lt;/a&gt; about the file.  =Syntax= &amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt; uint64_t truxton...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Given file contents and a [[File Types Supported|file type]], this function will get [[Type_File_Details|details]] about the file.&lt;br /&gt;
&lt;br /&gt;
=Syntax=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot;&amp;gt;&lt;br /&gt;
uint64_t truxton_get_details_size(uint32_t file_type, uint8_t const* input_buffer, uint64_t input_buffer_size);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Return value=&lt;br /&gt;
The size of a buffer that will hold the details of a file on success, zero on failure.&lt;br /&gt;
&lt;br /&gt;
=Sample=&lt;br /&gt;
&amp;lt;source lang=&amp;quot;C&amp;quot; highlight=&amp;quot;10&amp;quot;&amp;gt;&lt;br /&gt;
void main()&lt;br /&gt;
{&lt;br /&gt;
   uint8_t * file_buffer = nullptr;&lt;br /&gt;
   uint64_t file_size = 0;&lt;br /&gt;
&lt;br /&gt;
   uint32_t file_type = Type_64bit_Windows_Executable;&lt;br /&gt;
&lt;br /&gt;
   get_file_contents( &amp;quot;KERNEL32.DLL&amp;quot;, &amp;amp;file_buffer, &amp;amp;file_size );&lt;br /&gt;
&lt;br /&gt;
   uint64_t required_buffer_size = truxton_get_details_size( file_type, file_buffer, file_size );&lt;br /&gt;
&lt;br /&gt;
   char * output_buffer = malloc( required_buffer_size );&lt;br /&gt;
&lt;br /&gt;
   if ( truxton_get_details( file_type, file_buffer, file_size, output_buffer, required_buffer_size ) == 0 )&lt;br /&gt;
   {&lt;br /&gt;
      printf( &amp;quot;%s\n&amp;quot;, output_buffer );&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   free( output_buffer );&lt;br /&gt;
   free( file_buffer );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sam</name></author>
		
	</entry>
</feed>