Find Jobs
Hire Freelancers

Convert unsafe pointers to safe managed code.

$30-100 USD

Completed
Posted about 12 years ago

$30-100 USD

Paid on delivery
In silverlight 5 there was supposed to be a way to compile assemblies with unsafe code. I was able to do that but the client cannot run the code it generates an exception. I need three procedures written in managed code but it will need to be as bast as possible hence the reason I was using unsafe code to begin with. Good luck bidding.... ## Deliverables internal static unsafe double Reverse(double d) { byte* numPtr = (byte*)&d; byte num = numPtr[0]; numPtr[0] = numPtr[7]; numPtr[7] = num; num = numPtr[1]; numPtr[1] = numPtr[6]; numPtr[6] = num; num = numPtr[2]; numPtr[2] = numPtr[5]; numPtr[5] = num; num = numPtr[3]; numPtr[3] = numPtr[4]; numPtr[4] = num; return d; } internal static unsafe int Reverse(int i) { byte* numPtr = (byte*)&i; byte num = numPtr[0]; numPtr[0] = numPtr[3]; numPtr[3] = num; num = numPtr[1]; numPtr[1] = numPtr[2]; numPtr[2] = num; return i; } internal static unsafe uint Reverse(uint i) { byte* numPtr = (byte*)&i; byte num = numPtr[0]; numPtr[0] = numPtr[3]; numPtr[3] = num; num = numPtr[1]; numPtr[1] = numPtr[2]; numPtr[2] = num; return i; }
Project ID: 2714891

About the project

3 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$17 USD in 14 days
4.9 (26 reviews)
4.6
4.6
3 freelancers are bidding on average $35 USD for this job
User Avatar
See private message.
$30.60 USD in 14 days
5.0 (5 reviews)
2.1
2.1
User Avatar
See private message.
$58.65 USD in 14 days
5.0 (3 reviews)
1.2
1.2

About the client

Flag of UNITED STATES
Davisville, United States
5.0
133
Payment method verified
Member since Nov 22, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.