BattleNet.Bsha1.setBufferByte C# (CSharp) 메소드

setBufferByte() 보호된 정적인 메소드

protected static setBufferByte ( uint buffer, int offset, byte val ) : void
buffer uint
offset int
val byte
리턴 void
        protected static void setBufferByte(uint[] buffer, int offset, byte val)
        {
            int index = offset / 4;
            int position = offset % 4;
            int bit_offset = 8 * position;
            buffer[index] &= (uint)(0xFF << bit_offset) ^ 0xFFFFFFFF;
            buffer[index] |= (uint)val << bit_offset;
        }