This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IHttpMessageSerializer | |
{ | |
void Serialize(HttpResponseMessage response, Stream stream); | |
void Serialize(HttpRequestMessage request, Stream stream); | |
HttpResponseMessage DeserializeToResponse(Stream stream); | |
HttpRequestMessage DeserializeToRequest(Stream stream); | |
} | |
public class MessageContentHttpMessageSerializer : IHttpMessageSerializer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
leng = (scratchpad[1]*2); | |
for (j=0,i=0;i<leng,j<scratchpad[1];j++,i+=2) | |
{ | |
scratchpad[2+j] = ascii2hex( buffer[DATA+7+i], buffer[DATA+8+i]); | |
temp_length = sprintf( (char*)&scratchpad[0], (const rom far void *)"PROCESSED_3:%02x:%02x",scratchpad[2+j]); | |
testif_write( scratchpad,temp_length ); | |
} |