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.
Ταυτότητα εργασίας: 11566897

Σχετικά με την εργασία

13 προτάσεις
Απομακρυσμένη Εργασία
Ενεργός/ή 8 χρόνια πριν

Ψάχνεις τρόπο για να κερδίσεις μερικά χρήματα;

Πλεονεκτήματα πλειοδοσίας στο Freelancer

Καθόρισε τον προϋπολογισμό σου και το χρονοδιάγραμμα
Πληρώσου για τη δουλειά σου
Περίγραψε την πρόταση σου
Η εγγραφή και η πλειοδοσία σε εργασίες είναι δωρεάν
Βραβεύτηκε στον/στην:
Avatar Χρήστη
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 freelancers δίνουν μια μέση προσφορά $81 USD για αυτή τη δουλειά
Avatar Χρήστη
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
Avatar Χρήστη
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
Avatar Χρήστη
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
Avatar Χρήστη
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
Επαληθευμένη μέθοδος πληρωμής
Μέλος από Ιουλ 13, 2001

Επαλήθευση Πελάτη

Ευχαριστούμε! Σου έχουμε στείλει ένα email με ένα σύνδεσμο για να διεκδικήσεις τη δωρεάν πίστωση σου.
Κάτι πήγε στραβά κατά την προσπάθεια αποστολής του email σου. Παρακαλούμε δοκίμασε ξανά.
Εγγεγραμμένοι Χρήστες Συνολικές Αναρτημένες Δουλειές
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Φόρτωση προεπισκόπησης
Δόθηκε πρόσβαση για Geolocation.
Η σύνδεση σου έχει λήξει και τώρα έχεις αποσυνδεθεί. Παρακαλούμε συνδέσου ξανά.