Skip to content

Instantly share code, notes, and snippets.

View vacing's full-sized avatar
💭
I may be slow to respond.

vacingFang vacing

💭
I may be slow to respond.
View GitHub Profile
@vacing
vacing / safe_ptr.cpp
Last active September 11, 2025 08:01
shared_pointer wrapper for nonprimitive c struct .
#include <memory>
#include <iostream>
#include <cstdio>
/**
* @file safe_ptr.h
* @author vacingfang
* @version 0.1, 2025-08-14, init version
* @version 0.11, 2025-08-20, more comments
* @brief
import sys
import re
from StringIO import StringIO
# modify from: https://github.com/simon-engledew/python-chunks
# ref: https://github.com/jchristn/ChunkDecoder
'''
Usage:
decode_http_chunked.py file_in file_out