Đã Đóng

c# lzo byte array decompression

I need to decompress c# byte array following is entire packet HEX with ASCII dump of UDP packet.

0000 01 00 5e 32 3c 0b 08 d0 9f 42 d2 c5 08 00 45 00 ..^2<....B....E.

0010 00 a1 00 00 40 00 3b 11 33 8a ac 13 34 71 ef 32 ....@.;.3...4q.2

0020 3c 0b ec 70 3e 8b 00 8d 79 5e 30 00 85 00 01 3c <..p>...y^0....<

0030 43 4e 00 b9 00 2d db 83 33 4d 49 4e 44 49 41 20 CN...-..3MINDIA

0040 20 20 45 51 4e 20 31 35 35 37 33 39 39 38 33 35 EQN 1557399835

0050 20 20 32 32 39 30 37 2e 30 30 20 28 00 01 31 80 22907.00 (..1.

0060 55 36 00 55 33 30 00 56 31 30 2a 00 ae 32 38 60 [login to view URL]*..28`

0070 2c 61 09 31 00 58 61 31 33 01 2f 35 2e 37 81 5b ,a.1.Xa13./5.7.[

0080 38 35 32 80 ab 32 33 31 00 32 2e 32 a1 a9 32 00 852..231.2.2..2.

0090 77 30 36 20 2c 00 03 36 34 31 40 fe 36 2e 01 2c w06 ,..641@.6..,

00a0 08 31 31 33 34 36 2e 31 30 c4 53 0d 11 00 00 . 11346.10.S....

Data is from last byte of 3rd row i.e. from value 3c, following is c# representation of above byte data

byte[] compresseddata = {0x3c,0x43,0x4e,0x00,0xb9,0x00,0x2d,0xdb,0x83,0x33,0x4d,0x49,0x4e,0x44,0x49,0x41,0x20,0x20,0x20,0x45,0x51,0x4e,0x20,0x31,0x35,0x35,0x37,0x33,0x39,0x39,0x38,0x33,0x35,0x20,0x20,0x32,0x32,0x39,0x30,0x37,0x2e,0x30,0x30,0x20,0x28,0x00,0x01,0x31,0x80,0x55,0x36,0x00,0x55,0x33,0x30,0x00,0x56,0x31,0x30,0x2a,0x00,0xae,0x32,0x38,0x60,0x2c,0x61,0x09,0x31,0x00,0x58,0x61,0x31,0x33,0x01,0x2f,0x35,0x2e,0x37,0x81,0x5b,0x38,0x35,0x32,0x80,0xab,0x32,0x33,0x31,0x00,0x32,0x2e,0x32,0xa1,0xa9,0x32,0x00,0x77,0x30,0x36,0x20,0x2c,0x00,0x03,0x36,0x34,0x31,0x40,0xfe,0x36,0x2e,0x01,0x2c,0x08,0x31,0x31,0x33,0x34,0x36,0x2e,0x31,0x30,0xc4,0x53,0x0d,0x11,0x00,0x00}

you can also add last 4 byte which is not available in UDP packet which represents actual data length as 0xb0,0x00,0x00,0x00

I need to *decompress* above byte array data into 185 bytes data using LZO decompression

Structure of uncompressed data should be as follows (CHAR 1 byte, LONG 4, SHORT 2)

Field Length Size

Code 2 CHAR

Length 2 SHORT

Seq No 4 LONG

Symbol 10 CHAR

Series 2 CHAR

MktType 1 CHAR

TimeStm 11 CHAR

BestBuy 10 CHAR

BestBQt 12 CHAR

BestSelP 10 CHAR

BestSelQ 12 CHAR

LTP 10 CHAR

TTQ 12 CHAR

SecStus 1 CHAR

OpenPri 10 CHAR

HighPri 10 CHAR

LowPri 10 CHAR

ClosepRI 10 CHAR

ATP 10 CHAR

TurnOver 25 CHAR

Index 8 CHAR

CheckSum 2 SHORT

END 1 CHAR

Total 185 Bytes

Kĩ năng: Lập trình C, Lập trình C#, Lập trình C++, Java, Kiến trúc phần mềm

Xem nhiều hơn: conversion audio file byte array, string byte array, byte array pdf html, decompress stream c#, c# compress byte array, c# byte array to string, c# decompress gzip string, c# zip byte array, c# decompress byte array, lzo compression, decompress gzip c#, php as3 byte array jpg, byte array javascript, as3 byte array jpg, flash as3 jpg byte array, writing byte array sim android, javascript save byte array, jni byte array example, flash byte array javascript, pass byte array javascript

Về Bên Thuê:
( 5 nhận xét ) Surat, India

ID dự án: #19579243

4 freelancer đang chào giá trung bình $50 cho công việc này

shiningdevelopor

High-quality & Fast-delivery is promised! As a highly skilled full stack developer, I have rich experience in c#. I am very confident with my skills and I'd like to help your business by doing my best. My clients have Thêm

$50 USD trong 7 ngày
(14 Nhận xét)
5.2
evonsystems7

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned "I can do th Thêm

$50 USD trong 7 ngày
(3 Nhận xét)
0.0
VishalAgrawal11

Hi,I have read your requirements of c# lzo byte array decompression and I’m pretty confident that I will be able to get your work done within the given time your requirements conclude. I am very keen to discuss further Thêm

$50 USD trong 7 ngày
(0 Nhận xét)
0.0
astoristz

Hello, i use first lzo net library i found at google (hopefully im not using wrong one) try to decompress, and i found that beside just normal decompress, we might have to take care of endianess. looking forward to ha Thêm

$50 USD trong 1 ngày
(0 Nhận xét)
0.8