Catalysis of the reaction: S-adenosyl-L-methionine + 1,4-N1-D-glucooligosaccharide = S-adenosyl-L-homocysteine + oligosaccharide containing 6-methyl-D-glucose units.
acylpolysacharide 6-methyltransferase activity