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)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。