public virtual void writeChunk(string id, global::haxe.io.Bytes data) { unchecked { this.o.writeInt32(data.length); this.o.writeString(id); this.o.write(data); global::haxe.crypto.Crc32 crc = new global::haxe.crypto.Crc32(); { int _g = 0; while ((_g < 4)) { int i = _g++; crc.@byte((global::haxe.lang.StringExt.charCodeAt(id, i)).@value); } } crc.update(data, 0, data.length); this.o.writeInt32(crc.@get()); } }
protected static void __hx_ctor_haxe_crypto_Crc32(global::haxe.crypto.Crc32 __hx_this) { unchecked { __hx_this.crc = -1; } }