Find Jobs
Hire Freelancers

Change simple C functions from file I/O to memory buffer I/O

$30-250 USD

进行中
已发布超过 7 年前

$30-250 USD

货到付款
SUMMARY: I have a simple C demo of six small functions. However, they currently work by read/writing 1 byte at a time from a _file_, not memory ... I need you to get rid of all _file_ related code and change it so it reads/writes from an existing _memory_ buffer instead of from the file, very simple if you're good with C but I'm too new to C to figure it out in a decent time frame! THE SOURCE CODE: .c source - [login to view URL] .h header - [login to view URL] ____________________________________ SPECIFICS: - the function "open_input_bitstream(const char *path)" will change so that it accepts 1) the address of a buffer, and 2) size of buffer. (The buffer is provided/pre-allocated by the user) - the function "open_output_bitstream(const char *path)" will change so that it accepts just 1) size of buffer. It creates/allocates the buffer using the specified size. - close_bitstream() will no longer close the file handle. Instead it will free the memory allocated during open_output_bitstream() - the getbits/putbits functions obviously change - instead of reading/writing from the file, the memory buffer is used instead - no files. - when writing (ie. putbits), if we end up writing up to the end of the buffer the buffer should be realloc'd with (at least) another 4096 bytes, so writing continues uninterrupted. - when reading (ie. getbits), change the EOF check so that the buffer size is used instead, to prevent reading beyond the buffer - the bitstream structure currently starts with "FILE *stream", so this element will either be deleted or replaced with a buffer pointer or something along those lines. Please keep in mind performance is important.
项目 ID: 11566897

关于此项目

13提案
远程项目
活跃8 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
I'm an embedded software engineer , I code a lot in C and your project is very very easy , I did a lot of projects similar to yours .
$30 USD 在1天之内
0.0 (0条评论)
0.0
0.0
13威客以平均价$81 USD来参与此工作竞价
用户头像
Hello. I have read your requirement and I'm interesting about your job. I have enough experiences in C,C++. If you award me i can finish it without fail. I wanna work with you. Please send me your message. Thanks for you!
$111 USD 在2天之内
5.0 (2条评论)
4.6
4.6
用户头像
I'm computer engineering TA with 10+ years of experience I'm professional programmer of all of the following : Java, C#,,C/C++.Python, PASCAL,FORTRAN,MATLAB,VDL,Verilog I'm experienced with c/c++ memory management and data structures related projects I could do your required changes in small amount of time easily
$60 USD 在3天之内
5.0 (6条评论)
2.6
2.6
用户头像
I can do this job. Additionally i give some mini projects developed in C language within same cost. I will do this job at your convenient price and deliver on time.
$55 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Hello, I can easily solve your problem, however my suggestion is to make a class (in C++). It will be easier to manage the memory. Please let me know your thoughts. Best regards, Radu Bolovan.
$111 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

AUSTRALIA的国旗
Perth, Australia
5.0
31
付款方式已验证
会员自7月 13, 2001起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。