// File: metopa[P]HTTP_Server/src/content/CFileContent.cpp
// Function: CFileContent::load()
void CFileContent::load() {
	ifstream is( realPath_m, ifstream::binary );
	if ( !is )
		throw FileNotFoundException( userPath_m.c_str(), "" );

	is.seekg( 0, is.end );
	size_m = (size_t) is.tellg();
	is.seekg( 0, is.beg );

	char * buf = new char[size_m];
	is.read( buf, size_m );

	size_m = (size_t) is.tellg();

	data_m.insert( data_m.begin(), buf, buf + size_m );
	delete[] buf;

	if ( !is.good() )
		throw FileErrorException( userPath_m.c_str() );

	is.close();

	modificationTime();
	creationTime();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x370, %rsp            # imm = 0x370
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x2e0(%rbp)
addq $0x40, %rsi
leaq -0x210(%rbp), %rdi
movl $0x4, %edx
callq 0x6860
movq -0x210(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x210(%rbp,%rax), %rdi
callq 0x6270
movb %al, -0x2d3(%rbp)
jmp 0x1d0cf
movb -0x2d3(%rbp), %al
testb $0x1, %al
jne 0x1d0de
jmp 0x1d24a
movb $0x1, -0x26a(%rbp)
movl $0x48, %edi
callq 0x6280
movq -0x2e0(%rbp), %rdi
movq %rax, -0x2f8(%rbp)
addq $0x20, %rdi
callq 0x6240
movq %rax, -0x2f0(%rbp)
leaq -0x241(%rbp), %rdi
movq %rdi, -0x2e8(%rbp)
callq 0x6930
movq -0x2f0(%rbp), %rsi
movq -0x2e8(%rbp), %rdx
leaq -0x240(%rbp), %rdi
callq 0xa9d0
jmp 0x1d13c
leaq -0x269(%rbp), %rdi
movq %rdi, -0x300(%rbp)
callq 0x6930
movq -0x300(%rbp), %rdx
leaq 0xfd6f(%rip), %rsi      # 0x2cecc
leaq -0x268(%rbp), %rdi
callq 0xa9d0
jmp 0x1d16b
movq -0x2f8(%rbp), %rdi
leaq -0x240(%rbp), %rsi
leaq -0x268(%rbp), %rdx
callq 0xaa80
jmp 0x1d187
movq -0x2f8(%rbp), %rdi
movb $0x0, -0x26a(%rbp)
leaq 0x21234(%rip), %rsi     # 0x3e3d0
leaq -0x126d3(%rip), %rdx    # 0xaad0
callq 0x68e0
jmp 0x1d57b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
jmp 0x1d563
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
jmp 0x1d222
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
jmp 0x1d20a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x6310
leaq -0x269(%rbp), %rdi
callq 0x6550
leaq -0x240(%rbp), %rdi
callq 0x6310
leaq -0x241(%rbp), %rdi
callq 0x6550
testb $0x1, -0x26a(%rbp)
jne 0x1d239
jmp 0x1d245
movq -0x2f8(%rbp), %rdi
callq 0x63b0
jmp 0x1d563
xorl %eax, %eax
movl %eax, %esi
leaq -0x210(%rbp), %rdi
movl $0x2, %edx
callq 0x66f0
jmp 0x1d261
leaq -0x210(%rbp), %rdi
callq 0x6910
movq %rdx, -0x310(%rbp)
movq %rax, -0x308(%rbp)
jmp 0x1d27d
movq -0x310(%rbp), %rax
movq -0x308(%rbp), %rcx
movq %rcx, -0x280(%rbp)
movq %rax, -0x278(%rbp)
leaq -0x280(%rbp), %rdi
callq 0x1d640
movq %rax, -0x318(%rbp)
jmp 0x1d2ae
movq -0x2e0(%rbp), %rax
movq -0x318(%rbp), %rcx
movq %rcx, 0x60(%rax)
xorl %edx, %edx
movl %edx, %esi
leaq -0x210(%rbp), %rdi
callq 0x66f0
jmp 0x1d2d2
movq -0x2e0(%rbp), %rax
movq 0x60(%rax), %rdi
callq 0x6040
movq %rax, -0x320(%rbp)
jmp 0x1d2eb
movq -0x2e0(%rbp), %rax
movq -0x320(%rbp), %rcx
movq %rcx, -0x288(%rbp)
movq -0x288(%rbp), %rsi
movq 0x60(%rax), %rdx
leaq -0x210(%rbp), %rdi
callq 0x6660
jmp 0x1d319
leaq -0x210(%rbp), %rdi
callq 0x6910
movq %rdx, -0x330(%rbp)
movq %rax, -0x328(%rbp)
jmp 0x1d335
movq -0x330(%rbp), %rax
movq -0x328(%rbp), %rcx
movq %rcx, -0x298(%rbp)
movq %rax, -0x290(%rbp)
leaq -0x298(%rbp), %rdi
callq 0x1d640
movq %rax, -0x338(%rbp)
jmp 0x1d366
movq -0x2e0(%rbp), %rdi
movq -0x338(%rbp), %rax
movq %rax, 0x60(%rdi)
addq $0x8, %rdi
movq %rdi, -0x348(%rbp)
callq 0x16dc0
movq %rax, -0x2a8(%rbp)
leaq -0x2a0(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0x16df0
movq -0x2e0(%rbp), %rax
movq -0x348(%rbp), %rdi
movq -0x288(%rbp), %rdx
movq 0x60(%rax), %rax
movq %rdx, %rcx
addq %rax, %rcx
movq -0x2a0(%rbp), %rsi
callq 0x1d660
movq %rax, -0x340(%rbp)
jmp 0x1d3d6
movq -0x340(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq -0x288(%rbp), %rax
movq %rax, -0x350(%rbp)
cmpq $0x0, %rax
je 0x1d404
movq -0x350(%rbp), %rdi
callq 0x6680
movq -0x210(%rbp), %rax
movq -0x18(%rax), %rax
leaq -0x210(%rbp,%rax), %rdi
callq 0x68d0
movb %al, -0x351(%rbp)
jmp 0x1d424
movb -0x351(%rbp), %al
testb $0x1, %al
jne 0x1d524
jmp 0x1d434
movb $0x1, -0x2d2(%rbp)
movl $0x48, %edi
callq 0x6280
movq -0x2e0(%rbp), %rdi
movq %rax, -0x370(%rbp)
addq $0x20, %rdi
callq 0x6240
movq %rax, -0x368(%rbp)
leaq -0x2d1(%rbp), %rdi
movq %rdi, -0x360(%rbp)
callq 0x6930
movq -0x368(%rbp), %rsi
movq -0x360(%rbp), %rdx
leaq -0x2d0(%rbp), %rdi
callq 0xa9d0
jmp 0x1d492
movq -0x370(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x16a10
jmp 0x1d4a7
movq -0x370(%rbp), %rdi
movb $0x0, -0x2d2(%rbp)
leaq 0x21154(%rip), %rsi     # 0x3e610
leaq -0x6a73(%rip), %rdx     # 0x16a50
callq 0x68e0
jmp 0x1d57b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
jmp 0x1d4ff
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x218(%rbp)
movl %eax, -0x21c(%rbp)
leaq -0x2d0(%rbp), %rdi
callq 0x6310
leaq -0x2d1(%rbp), %rdi
callq 0x6550
testb $0x1, -0x2d2(%rbp)
jne 0x1d516
jmp 0x1d522
movq -0x370(%rbp), %rdi
callq 0x63b0
jmp 0x1d563
leaq -0x210(%rbp), %rdi
callq 0x6120
jmp 0x1d532
movq -0x2e0(%rbp), %rdi
callq 0x1d580
jmp 0x1d540
movq -0x2e0(%rbp), %rdi
callq 0x158a0
jmp 0x1d54e
leaq -0x210(%rbp), %rdi
callq 0x6170
addq $0x370, %rsp            # imm = 0x370
popq %rbp
retq
leaq -0x210(%rbp), %rdi
callq 0x6170
movq -0x218(%rbp), %rdi
callq 0x6920
nopl (%rax,%rax)