| 261 | |
| 262 | |
| 263 | ULONG CAN_slice(lstring* buffer, lstring* slice, bool direction, UCHAR* sdl) |
| 264 | { |
| 265 | /************************************** |
| 266 | * |
| 267 | * C A N _ s l i c e |
| 268 | * |
| 269 | ************************************** |
| 270 | * |
| 271 | * Functional description |
| 272 | * encode and decode canonical backup. |
| 273 | * |
| 274 | **************************************/ |
| 275 | BurpXdr xdr; |
| 276 | BurpXdr* xdrs = &xdr; |
| 277 | |
| 278 | xdr_init(xdrs, buffer, direction ? XDR_ENCODE : XDR_DECODE); |
| 279 | |
| 280 | xdr_slice(xdrs, slice, /*sdl_length,*/ sdl); |
| 281 | return (xdrs->x_private - xdrs->x_base); |
| 282 | } |
| 283 | |
| 284 | |
| 285 | bool_t BurpXdr::x_getbytes(SCHAR* buff, unsigned bytecount) |