public void Dispose() { if (pal != null) { CRuntime.free(pal); pal = null; } if (lpal != null) { CRuntime.free(lpal); lpal = null; } if (codes != null) { CRuntime.free(codes); codes = null; } }
public stbi__gif() { pal = (byte **)palArray; lpal = (byte **)lpalArray; codes = (stbi__gif_lzw *)codesArray; }
public stbi__gif() { codes = (stbi__gif_lzw *)stbi__malloc(4096 * sizeof(stbi__gif_lzw)); pal = (byte *)stbi__malloc(256 * 4 * sizeof(byte)); lpal = (byte *)stbi__malloc(256 * 4 * sizeof(byte)); }